Make WordPress Core


Ignore:
Timestamp:
03/23/2024 02:18:55 PM (3 years ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Use strict comparison in wp-includes/bookmark.php.

Follow-up to [21], [3570], [3845], [8758].

Props aristath, poena, afercia, SergeyBiryukov.
See #60700.

File:
1 edited

Legend:

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

    r57192 r57873  
    3535                $_bookmark = $bookmark;
    3636        } else {
    37                 if ( isset( $GLOBALS['link'] ) && ( $GLOBALS['link']->link_id == $bookmark ) ) {
     37                if ( isset( $GLOBALS['link'] ) && ( $GLOBALS['link']->link_id === $bookmark ) ) {
    3838                        $_bookmark = & $GLOBALS['link'];
    3939                } else {
    … …  
    308308        $query .= " $exclusions $inclusions $search";
    309309        $query .= " ORDER BY $orderby $order";
    310         if ( -1 != $parsed_args['limit'] ) {
     310        if ( -1 !== $parsed_args['limit'] ) {
    311311                $query .= ' LIMIT ' . absint( $parsed_args['limit'] );
    312312        }
Note: See TracChangeset for help on using the changeset viewer.