[wp-trac] [WordPress Trac] #48264: Item type of 'integer' fails to save unchanged values with 'array' type in register_meta()
WordPress Trac
noreply at wordpress.org
Wed Oct 9 17:34:32 UTC 2019
#48264: Item type of 'integer' fails to save unchanged values with 'array' type in
register_meta()
--------------------------------------+--------------------------------
Reporter: augustuswm | Owner: TimothyBlynJacobs
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 5.3
Component: Options, Meta APIs | Version: trunk
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit-tests | Focuses: rest-api
--------------------------------------+--------------------------------
Changes (by kadamwhite):
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"46454" 46454]:
{{{
#!CommitTicketReference repository="" revision="46454"
REST API: Do not addslash when receiving meta arrays of non-string values.
Slashing non-string data caused PUT requests containing unmodified meta
arrays of integers to fail the check against the existing stored meta
value, causing a 500 when posting an unmodified response body back to the
server.
Props TimothyBlynJacobs, augustuswm.
Fixes #48264.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/48264#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list