Adjust post meta checks
Built from https://develop.svn.wordpress.org/trunk@40692 git-svn-id: http://core.svn.wordpress.org/trunk@40555 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
76d77e927b
commit
3d95e3ae81
|
@ -382,6 +382,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 )
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.8-beta1-40689';
|
$wp_version = '4.8-beta1-40692';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue