From 3280c340cd04544377a7b8e5349fccccf382f07a Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sun, 20 Aug 2023 00:10:22 +0000 Subject: [PATCH] Coding Standards: Use strict comparison in `wp-admin/includes/meta-boxes.php`. Follow-up to [38], [647], [2890], [3570], [11815], [11816], [31550], [52620]. Props aristath, poena, afercia, SergeyBiryukov. See #58831. Built from https://develop.svn.wordpress.org/trunk@56420 git-svn-id: http://core.svn.wordpress.org/trunk@55932 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/meta-boxes.php | 4 ++-- wp-includes/version.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-admin/includes/meta-boxes.php b/wp-admin/includes/meta-boxes.php index 7d0e1def8b..0584a2edc4 100644 --- a/wp-admin/includes/meta-boxes.php +++ b/wp-admin/includes/meta-boxes.php @@ -1033,7 +1033,7 @@ function page_attributes_meta_box( $post ) { endif; // End empty pages check. endif; // End hierarchical check. - if ( count( get_page_templates( $post ) ) > 0 && get_option( 'page_for_posts' ) != $post->ID ) : + if ( count( get_page_templates( $post ) ) > 0 && (int) get_option( 'page_for_posts' ) !== $post->ID ) : $template = ! empty( $post->page_template ) ? $post->page_template : false; ?>

@@ -1496,7 +1496,7 @@ function link_advanced_meta_box( $link ) { link_rating ) && $link->link_rating == $rating ) { + if ( isset( $link->link_rating ) && $link->link_rating === $rating ) { echo ' selected="selected"'; } echo '>' . $rating . ''; diff --git a/wp-includes/version.php b/wp-includes/version.php index 34d168d026..4494d7c992 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.4-alpha-56419'; +$wp_version = '6.4-alpha-56420'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.