WordPress.org

Make WordPress Core

Ticket #24822: 24822.diff

File 24822.diff, 722 bytes (added by Zengy, 9 months ago)
  • wp-includes/class-wp-xmlrpc-server.php

    diff --git a/wp-includes/class-wp-xmlrpc-server.php b/wp-includes/class-wp-xmlrpc-server.php
    index 1f6e113..efa4920 100644
    a b class wp_xmlrpc_server extends IXR_Server { 
    279279                                                continue; 
    280280                                        $meta['value'] = wp_unslash( $meta['value'] ); 
    281281                                        if ( current_user_can( 'edit_post_meta', $post_id, $meta['key'] ) ) 
    282                                                 update_metadata_by_mid( 'post', $meta['id'], $meta['value'] ); 
     282                                                update_metadata_by_mid( 'post', $meta['id'], $meta['value'], $meta['key'] ); 
    283283                                } elseif ( current_user_can( 'delete_post_meta', $post_id, $pmeta->meta_key ) ) { 
    284284                                        delete_metadata_by_mid( 'post', $meta['id'] ); 
    285285                                }