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.