[wp-trac] [WordPress Trac] #32863: set_custom_fields function in wp_xmlrpc_server class
WordPress Trac
noreply at wordpress.org
Thu Jul 2 15:55:02 UTC 2015
#32863: set_custom_fields function in wp_xmlrpc_server class
--------------------------+------------------------------
Reporter: marifamir | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: XML-RPC | Version: 4.2.2
Severity: trivial | Resolution:
Keywords: | Focuses: administration
--------------------------+------------------------------
Changes (by markoheijnen):
* focuses: accessibility, administration => administration
* severity: major => trivial
Comment:
Hey Muhammad,
Fields that start with an underscore are seen as private. That is the
reason why you can't change them. This is intended behaviour. See #17850
for more information. If you want to change those values then you should
use {{{register_meta}}} and handle it yourself. I suddenly do wonder if it
works since I we maybe would need to use {{{is_protected_meta()}}}.
Wondering if we have unit tests for this.
Also add_post_meta seems to be fine there since nothing needs to be
updated.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/32863#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list