Coding Standards: Use strict comparison in `wp-includes/bookmark.php`.
Follow-up to [21], [3570], [3845], [8758]. Props aristath, poena, afercia, SergeyBiryukov. See #60700. Built from https://develop.svn.wordpress.org/trunk@57873 git-svn-id: http://core.svn.wordpress.org/trunk@57374 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
807916dd1e
commit
22d95abc55
|
@ -34,7 +34,7 @@ function get_bookmark( $bookmark, $output = OBJECT, $filter = 'raw' ) {
|
||||||
wp_cache_add( $bookmark->link_id, $bookmark, 'bookmark' );
|
wp_cache_add( $bookmark->link_id, $bookmark, 'bookmark' );
|
||||||
$_bookmark = $bookmark;
|
$_bookmark = $bookmark;
|
||||||
} else {
|
} else {
|
||||||
if ( isset( $GLOBALS['link'] ) && ( $GLOBALS['link']->link_id == $bookmark ) ) {
|
if ( isset( $GLOBALS['link'] ) && ( $GLOBALS['link']->link_id === $bookmark ) ) {
|
||||||
$_bookmark = & $GLOBALS['link'];
|
$_bookmark = & $GLOBALS['link'];
|
||||||
} else {
|
} else {
|
||||||
$_bookmark = wp_cache_get( $bookmark, 'bookmark' );
|
$_bookmark = wp_cache_get( $bookmark, 'bookmark' );
|
||||||
|
@ -307,7 +307,7 @@ function get_bookmarks( $args = '' ) {
|
||||||
$query = "SELECT * $length $recently_updated_test $get_updated FROM $wpdb->links $join WHERE 1=1 $visible $category_query";
|
$query = "SELECT * $length $recently_updated_test $get_updated FROM $wpdb->links $join WHERE 1=1 $visible $category_query";
|
||||||
$query .= " $exclusions $inclusions $search";
|
$query .= " $exclusions $inclusions $search";
|
||||||
$query .= " ORDER BY $orderby $order";
|
$query .= " ORDER BY $orderby $order";
|
||||||
if ( -1 != $parsed_args['limit'] ) {
|
if ( -1 !== $parsed_args['limit'] ) {
|
||||||
$query .= ' LIMIT ' . absint( $parsed_args['limit'] );
|
$query .= ' LIMIT ' . absint( $parsed_args['limit'] );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '6.6-alpha-57871';
|
$wp_version = '6.6-alpha-57873';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue