mirror of
git://develop.git.wordpress.org/
synced 2025-01-29 10:38:22 +01:00
Adjust post meta checks
Merges [40692] to the 4.3 branch. git-svn-id: https://develop.svn.wordpress.org/branches/4.3@40697 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
85789fc185
commit
01feae0075
@ -352,6 +352,11 @@ class wp_xmlrpc_server extends IXR_Server {
|
||||
if ( isset($meta['id']) ) {
|
||||
$meta['id'] = (int) $meta['id'];
|
||||
$pmeta = get_metadata_by_mid( 'post', $meta['id'] );
|
||||
|
||||
if ( ! $pmeta || $pmeta->post_id != $post_id ) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if ( isset($meta['key']) ) {
|
||||
$meta['key'] = wp_unslash( $meta['key'] );
|
||||
if ( $meta['key'] !== $pmeta->meta_key )
|
||||
|
Loading…
x
Reference in New Issue
Block a user