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
This commit is contained in:
Sergey Biryukov 2025-01-29 14:46:23 +00:00
parent ea9c114c98
commit 16a13a7f40
2 changed files with 2 additions and 2 deletions

View File

@ -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;
}

View File

@ -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.