mirror of
git://develop.git.wordpress.org/
synced 2025-03-24 05:49:49 +01:00
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:
parent
d73702aa21
commit
8246f316e4
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user