WordPress.org

Make WordPress Core


Ignore:
Timestamp:
05/23/2020 11:36:36 AM (11 months ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Use strict comparison for count() calls.

See #49542.

File:
1 edited

Legend:

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

    r47808 r47848  
    169169     * remove the submenu.
    170170     */
    171     if ( ! empty( $submenu[ $data[2] ] ) && 1 == count( $submenu[ $data[2] ] ) ) {
     171    if ( ! empty( $submenu[ $data[2] ] ) && 1 === count( $submenu[ $data[2] ] ) ) {
    172172        $subs      = $submenu[ $data[2] ];
    173173        $first_sub = reset( $subs );
Note: See TracChangeset for help on using the changeset viewer.