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/category-template.php

    r47122 r47219  
    837837        } elseif ( ! empty( $args['topic_count_text_callback'] ) ) {
    838838                // Look for the alternative callback style. Ignore the previous default.
    839                 if ( $args['topic_count_text_callback'] === 'default_topic_count_text' ) {
     839                if ( 'default_topic_count_text' === $args['topic_count_text_callback'] ) {
    840840                        /* translators: %s: Number of items (tags). */
    841841                        $translate_nooped_plural = _n_noop( '%s item', '%s items' );
Note: See TracChangeset for help on using the changeset viewer.