Make WordPress Core


Ignore:
Timestamp:
05/16/2017 08:45:18 AM (7 years ago)
Author:
swissspidy
Message:

Adjust post meta checks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-xmlrpc-server.php

    r40677 r40692  
    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'] );
Note: See TracChangeset for help on using the changeset viewer.