Make WordPress Core


Ignore:
Timestamp:
02/09/2020 04:52:28 PM (7 years ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Use Yoda conditions where appropriate.

See #49222.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-hook.php

    r47122 r47219  
    282282
    283283                                // Avoid the array_slice() if possible.
    284                                 if ( $the_['accepted_args'] == 0 ) {
     284                                if ( 0 == $the_['accepted_args'] ) {
    285285                                        $value = call_user_func( $the_['function'] );
    286286                                } elseif ( $the_['accepted_args'] >= $num_args ) {
Note: See TracChangeset for help on using the changeset viewer.