Coding Standards: Use strict comparison in wp_xmlrpc_server::set_custom_fields().

Follow-up to [40692].

Props aristath, poena, afercia, SergeyBiryukov.
See #62279.

git-svn-id: https://develop.svn.wordpress.org/trunk@59726 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2025-01-29 14:44:32 +00:00
parent d73702aa21
commit 8246f316e4

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