WordPress.org

Make WordPress Core


Ignore:
Timestamp:
05/23/2020 04:20:10 PM (19 months ago)
Author:
SergeyBiryukov
Message:

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

Follow-up to [47848].

Props mukesh27.
Fixes #50232. See #49542.

File:
1 edited

Legend:

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

    r47848 r47851  
    287287
    288288    // Passed link category list overwrites existing category list if not empty.
    289     if ( isset( $linkdata['link_category'] ) && is_array( $linkdata['link_category'] ) && 0 != count( $linkdata['link_category'] ) ) {
     289    if ( isset( $linkdata['link_category'] ) && is_array( $linkdata['link_category'] )
     290        && count( $linkdata['link_category'] ) > 0
     291    ) {
    290292        $link_cats = $linkdata['link_category'];
    291293    } else {
Note: See TracChangeset for help on using the changeset viewer.