[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:00:12 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: assigned
Priority: normal | Milestone: 5.3
Component: Options, Meta APIs | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests | Focuses: rest-api
--------------------------------------+--------------------------------
Comment (by augustuswm):
Thanks for looking into this! Just applied them to our test env and saving
looks to be working.
Here is the db storage before and after.
Before:
{{{
| 4200 | 536 | writers | a:3:{i:0;s:3:"297";i:1;s:3:"299";i:2;s:3:"301";}
|
}}}
After:
{{{
| 4200 | 536 | writers | a:3:{i:0;i:297;i:1;i:301;i:2;i:299;} |
}}}
Also did not mention it in the initial report, but we really appreciate
the work going into adding this functionality. It is extremely useful.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/48264#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list