Make WordPress Core


Ignore:
Timestamp:
05/12/2020 06:30:03 PM (5 years ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Use strict comparison in some wp-admin files.

Props pikamander2, mukesh27, SergeyBiryukov.
Fixes #49239.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/edit.php

    r47550 r47785  
    333333    /* translators: %s: Number of posts. */
    334334    'updated'   => _n( '%s post updated.', '%s posts updated.', $bulk_counts['updated'] ),
    335     'locked'    => ( 1 == $bulk_counts['locked'] ) ? __( '1 post not updated, somebody is editing it.' ) :
     335    'locked'    => ( 1 === $bulk_counts['locked'] ) ? __( '1 post not updated, somebody is editing it.' ) :
    336336                    /* translators: %s: Number of posts. */
    337337                    _n( '%s post not updated, somebody is editing it.', '%s posts not updated, somebody is editing them.', $bulk_counts['locked'] ),
     
    346346    /* translators: %s: Number of pages. */
    347347    'updated'   => _n( '%s page updated.', '%s pages updated.', $bulk_counts['updated'] ),
    348     'locked'    => ( 1 == $bulk_counts['locked'] ) ? __( '1 page not updated, somebody is editing it.' ) :
     348    'locked'    => ( 1 === $bulk_counts['locked'] ) ? __( '1 page not updated, somebody is editing it.' ) :
    349349                    /* translators: %s: Number of pages. */
    350350                    _n( '%s page not updated, somebody is editing it.', '%s pages not updated, somebody is editing them.', $bulk_counts['locked'] ),
     
    359359    /* translators: %s: Number of blocks. */
    360360    'updated'   => _n( '%s block updated.', '%s blocks updated.', $bulk_counts['updated'] ),
    361     'locked'    => ( 1 == $bulk_counts['locked'] ) ? __( '1 block not updated, somebody is editing it.' ) :
     361    'locked'    => ( 1 === $bulk_counts['locked'] ) ? __( '1 block not updated, somebody is editing it.' ) :
    362362                    /* translators: %s: Number of blocks. */
    363363                    _n( '%s block not updated, somebody is editing it.', '%s blocks not updated, somebody is editing them.', $bulk_counts['locked'] ),
Note: See TracChangeset for help on using the changeset viewer.