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:
Sergey Biryukov 2023-06-24 13:54:23 +00:00
parent e0ffbee0aa
commit 9a33056097
2 changed files with 2 additions and 2 deletions

View File

@ -488,7 +488,7 @@ if ( ! function_exists( 'str_ends_with' ) ) {
$len = strlen( $needle ); $len = strlen( $needle );
return $needle === substr( $haystack, -$len, $len ); return substr( $haystack, -$len, $len ) === $needle;
} }
} }

View File

@ -16,7 +16,7 @@
* *
* @global string $wp_version * @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. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.