Make WordPress Core

Changeset 40703


Ignore:
Timestamp:
05/16/2017 08:53:28 AM (8 years ago)
Author:
swissspidy
Message:

Adjust post meta checks

Merges [40692] to the 3.7 branch.

Location:
branches/3.7
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/3.7

  • branches/3.7/src

  • branches/3.7/src/wp-includes/class-wp-xmlrpc-server.php

    r40688 r40703  
    274274                $meta['id'] = (int) $meta['id'];
    275275                $pmeta = get_metadata_by_mid( 'post', $meta['id'] );
     276
     277                if ( ! $pmeta || $pmeta->post_id != $post_id ) {
     278                    continue;
     279                }
     280
    276281                if ( isset($meta['key']) ) {
    277282                    $meta['key'] = wp_unslash( $meta['key'] );
Note: See TracChangeset for help on using the changeset viewer.