[wp-trac] [WordPress Trac] #38553: Posts Controller handle_terms throws warning
WordPress Trac
noreply at wordpress.org
Sat Oct 29 00:07:18 UTC 2016
#38553: Posts Controller handle_terms throws warning
----------------------------+------------------------------
Reporter: timmydcrawford | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: REST API | Version: trunk
Severity: normal | Resolution:
Keywords: | Focuses:
----------------------------+------------------------------
Comment (by ChopinBach):
@timmydcrawford Great catch on this! To solve two problems at once,
instead of changing the conditional to check if it is an array. Just
change the line where `$terms` is assigned to read `$terms =
wp_parse_id_list( $request[ $base ] );` That should enable the csv list
support for updating/creating posts with multiple categories. I haven't
tested it, but it should work. Adding in a test case would be nice too. I
will test it myself tomorrow and see if I can help out.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38553#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list