mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-04 04:34:31 +00:00
Coding Standards: Use Yoda conditions where appropriate.
See #49222. git-svn-id: https://develop.svn.wordpress.org/trunk@47219 602fd350-edb4-49c9-b593-d223f7449a82
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