Coding Standards: Use Yoda conditions where appropriate.
See #49222. Built from https://develop.svn.wordpress.org/trunk@47219 git-svn-id: http://core.svn.wordpress.org/trunk@47019 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -596,7 +596,7 @@ function wp_default_packages( &$scripts ) {
|
||||
function wp_scripts_get_suffix( $type = '' ) {
|
||||
static $suffixes;
|
||||
|
||||
if ( $suffixes === null ) {
|
||||
if ( null === $suffixes ) {
|
||||
// Include an unmodified $wp_version.
|
||||
require ABSPATH . WPINC . '/version.php';
|
||||
|
||||
@@ -614,7 +614,7 @@ function wp_scripts_get_suffix( $type = '' ) {
|
||||
);
|
||||
}
|
||||
|
||||
if ( $type === 'dev' ) {
|
||||
if ( 'dev' === $type ) {
|
||||
return $suffixes['dev_suffix'];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user