From 37ce09349a4f874b760a374afca2af6e9f011802 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Wed, 20 Mar 2024 12:49:10 +0000 Subject: [PATCH] Coding Standards: Use strict comparison in `wp-includes/bookmark-template.php`. Follow-up to [3880]. Props aristath, poena, afercia, SergeyBiryukov. See #60700. Built from https://develop.svn.wordpress.org/trunk@57859 git-svn-id: http://core.svn.wordpress.org/trunk@57360 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/bookmark-template.php | 6 +++--- wp-includes/deprecated.php | 6 +++--- wp-includes/version.php | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/wp-includes/bookmark-template.php b/wp-includes/bookmark-template.php index d9bca2bbd7..d5878887d9 100644 --- a/wp-includes/bookmark-template.php +++ b/wp-includes/bookmark-template.php @@ -124,11 +124,11 @@ function _walk_bookmarks( $bookmarks, $args = '' ) { $output .= $parsed_args['link_before']; - if ( null != $bookmark->link_image && $parsed_args['show_images'] ) { + if ( '' !== $bookmark->link_image && $parsed_args['show_images'] ) { if ( str_starts_with( $bookmark->link_image, 'http' ) ) { - $output .= "link_image\" $alt $title />"; + $output .= ''; } else { // If it's a relative path. - $output .= 'link_image\" $alt $title />"; + $output .= ''; } if ( $parsed_args['show_name'] ) { $output .= " $name"; diff --git a/wp-includes/deprecated.php b/wp-includes/deprecated.php index 4de4a93039..8087c3d867 100644 --- a/wp-includes/deprecated.php +++ b/wp-includes/deprecated.php @@ -996,11 +996,11 @@ function get_links($category = -1, $before = '', $after = '
', $between = ' $output .= ''; - if ( $row->link_image != null && $show_images ) { + if ( '' != $row->link_image && $show_images ) { if ( str_contains( $row->link_image, 'http' ) ) - $output .= "link_image\" $alt $title />"; + $output .= ''; else // If it's a relative path. - $output .= "link_image\" $alt $title />"; + $output .= ''; } else { $output .= $name; } diff --git a/wp-includes/version.php b/wp-includes/version.php index 27040bdc2b..752c201daf 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.6-alpha-57858'; +$wp_version = '6.6-alpha-57859'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.