mirror of
https://github.com/WordPress/WordPress.git
synced 2024-09-29 15:47:38 +02:00
Adjust post meta checks
Merges [40692] to the 4.4 branch. Built from https://develop.svn.wordpress.org/branches/4.4@40696 git-svn-id: http://core.svn.wordpress.org/branches/4.4@40559 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
ad081ea634
commit
3ad4757088
@ -366,6 +366,11 @@ class wp_xmlrpc_server extends IXR_Server {
|
|||||||
if ( isset($meta['id']) ) {
|
if ( isset($meta['id']) ) {
|
||||||
$meta['id'] = (int) $meta['id'];
|
$meta['id'] = (int) $meta['id'];
|
||||||
$pmeta = get_metadata_by_mid( 'post', $meta['id'] );
|
$pmeta = get_metadata_by_mid( 'post', $meta['id'] );
|
||||||
|
|
||||||
|
if ( ! $pmeta || $pmeta->post_id != $post_id ) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
if ( isset($meta['key']) ) {
|
if ( isset($meta['key']) ) {
|
||||||
$meta['key'] = wp_unslash( $meta['key'] );
|
$meta['key'] = wp_unslash( $meta['key'] );
|
||||||
if ( $meta['key'] !== $pmeta->meta_key )
|
if ( $meta['key'] !== $pmeta->meta_key )
|
||||||
|
Loading…
Reference in New Issue
Block a user