[wp-trac] [WordPress Trac] #17850: XMLRPC API Clients can't edit underscore-prefixed custom fields

WordPress Trac wp-trac at lists.automattic.com
Thu Jul 21 18:51:04 UTC 2011


#17850: XMLRPC API Clients can't edit underscore-prefixed custom fields
--------------------------+-----------------------
 Reporter:  redsweater    |       Owner:  ryan
     Type:  defect (bug)  |      Status:  reopened
 Priority:  normal        |   Milestone:  3.3
Component:  General       |     Version:  3.1.3
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |
--------------------------+-----------------------

Comment (by ryan):

 add_meta() was double stripping and calling maybe_serialize() too early.
 17850.18.diff is a derivation of 17.diff.  It retrains the stripping of
 the key so that is_protected_meta() and current_user_can()  have the
 proper key  to work with.  esc_sql() adds the slashes back prior to
 calling add_post_meta().

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/17850#comment:32>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list