Skip to content

Commit f870189

Browse files
Coding Standards: Use strict comparison in wp-includes/bookmark.php.
Follow-up to [21], [3570], [3845], [8758]. Props aristath, poena, afercia, SergeyBiryukov. See #60700. git-svn-id: https://develop.svn.wordpress.org/trunk@57873 602fd350-edb4-49c9-b593-d223f7449a82
1 parent f6cad36 commit f870189

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/wp-includes/bookmark.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ function get_bookmark( $bookmark, $output = OBJECT, $filter = 'raw' ) {
3434
wp_cache_add( $bookmark->link_id, $bookmark, 'bookmark' );
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 {
4040
$_bookmark = wp_cache_get( $bookmark, 'bookmark' );
@@ -307,7 +307,7 @@ function get_bookmarks( $args = '' ) {
307307
$query = "SELECT * $length $recently_updated_test $get_updated FROM $wpdb->links $join WHERE 1=1 $visible $category_query";
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
}
313313

0 commit comments

Comments
 (0)