Coding Standards: Use Yoda condition in `str_ends_with()`.
This resolves a WPCS error: {{{ Use Yoda Condition checks, you must. }}} Follow-up to [56015], [56016]. See #58220. Built from https://develop.svn.wordpress.org/trunk@56017 git-svn-id: http://core.svn.wordpress.org/trunk@55529 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
e0ffbee0aa
commit
9a33056097
|
@ -488,7 +488,7 @@ if ( ! function_exists( 'str_ends_with' ) ) {
|
|||
|
||||
$len = strlen( $needle );
|
||||
|
||||
return $needle === substr( $haystack, -$len, $len );
|
||||
return substr( $haystack, -$len, $len ) === $needle;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '6.3-alpha-56016';
|
||||
$wp_version = '6.3-alpha-56017';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue