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/bookmark.php

    r47808 r47848  
    199199
    200200    // Make sure we set a valid category.
    201     if ( ! is_array( $link_category ) || 0 == count( $link_category ) ) {
     201    if ( ! is_array( $link_category ) || 0 === count( $link_category ) ) {
    202202        $link_category = array( get_option( 'default_link_category' ) );
    203203    }
     
    258258function wp_set_link_cats( $link_id = 0, $link_categories = array() ) {
    259259    // If $link_categories isn't already an array, make it one:
    260     if ( ! is_array( $link_categories ) || 0 == count( $link_categories ) ) {
     260    if ( ! is_array( $link_categories ) || 0 === count( $link_categories ) ) {
    261261        $link_categories = array( get_option( 'default_link_category' ) );
    262262    }
Note: See TracChangeset for help on using the changeset viewer.