Skip to content

Commit 3d95e3a

Browse files
committed
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
1 parent 76d77e9 commit 3d95e3a

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

Diff for: wp-includes/class-wp-xmlrpc-server.php

+5
Original file line numberDiff line numberDiff line change
@@ -382,6 +382,11 @@ public function set_custom_fields($post_id, $fields) {
382382
if ( isset($meta['id']) ) {
383383
$meta['id'] = (int) $meta['id'];
384384
$pmeta = get_metadata_by_mid( 'post', $meta['id'] );
385+
386+
if ( ! $pmeta || $pmeta->post_id != $post_id ) {
387+
continue;
388+
}
389+
385390
if ( isset($meta['key']) ) {
386391
$meta['key'] = wp_unslash( $meta['key'] );
387392
if ( $meta['key'] !== $pmeta->meta_key )

Diff for: wp-includes/version.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*
55
* @global string $wp_version
66
*/
7-
$wp_version = '4.8-beta1-40689';
7+
$wp_version = '4.8-beta1-40692';
88

99
/**
1010
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.

0 commit comments

Comments
 (0)