From 16a13a7f4031ec3960171ead55f0dc9dd3671445 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Wed, 29 Jan 2025 14:46:23 +0000 Subject: [PATCH] Coding Standards: Use strict comparison in `wp_xmlrpc_server::set_custom_fields()`. Follow-up to [40692]. Props aristath, poena, afercia, SergeyBiryukov. See #62279. Built from https://develop.svn.wordpress.org/trunk@59726 git-svn-id: http://core.svn.wordpress.org/trunk@59068 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-wp-xmlrpc-server.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/class-wp-xmlrpc-server.php b/wp-includes/class-wp-xmlrpc-server.php index 93c9333d59..a342ce5f2f 100644 --- a/wp-includes/class-wp-xmlrpc-server.php +++ b/wp-includes/class-wp-xmlrpc-server.php @@ -426,7 +426,7 @@ class wp_xmlrpc_server extends IXR_Server { $meta['id'] = (int) $meta['id']; $pmeta = get_metadata_by_mid( 'post', $meta['id'] ); - if ( ! $pmeta || $pmeta->post_id != $post_id ) { + if ( ! $pmeta || (int) $pmeta->post_id !== $post_id ) { continue; } diff --git a/wp-includes/version.php b/wp-includes/version.php index b120bc1f15..e3b9b825b3 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.8-alpha-59725'; +$wp_version = '6.8-alpha-59726'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.