[wp-trac] [WordPress Trac] #24822: XMLRPC wp.editPost doesn't update existing keys

WordPress Trac noreply at wordpress.org
Tue Jul 23 12:52:16 UTC 2013


#24822: XMLRPC wp.editPost doesn't update existing keys
--------------------------+-----------------------------
 Reporter:  jmaimarc      |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  XML-RPC       |    Version:  trunk
 Severity:  normal        |   Keywords:  needs-patch
--------------------------+-----------------------------
 file: wp-includes/class-wp-xmlrpc-server.php
 line 288:
 Currently, the code is:

 {{{
 update_metadata_by_mid( 'post', $meta['id'], $meta['value']);
 }}}


 Since it already checks for an existing key, shouldn't the code be:

 {{{
 update_metadata_by_mid( 'post', $meta['id'], $meta['value'], $meta['key']
 );
 }}}


 or at least switch between a key and FALSE (default value)?

--
Ticket URL: <http://core.trac.wordpress.org/ticket/24822>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list