[wp-trac] [WordPress Trac] #38553: Posts Controller handle_terms throws warning

WordPress Trac noreply at wordpress.org
Sun Oct 30 03:41:36 UTC 2016


#38553: Posts Controller handle_terms throws warning
--------------------------------------+--------------------
 Reporter:  timmydcrawford            |       Owner:
     Type:  defect (bug)              |      Status:  new
 Priority:  normal                    |   Milestone:  4.7
Component:  REST API                  |     Version:  trunk
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+--------------------

Comment (by timmydcrawford):

 Replying to [comment:8 ChopinBach]:
 > After reviewing our code some more, I believe I came across the actual
 root cause of the problem. Around line 1776 in the post controller, we
 need to add `arg_options => array( 'sanitize_callback' =>
 'wp_parse_id_list' )` to the schema, making it consistent with how other
 id lists are handled.

 Great solution, and confirmed it works in the next diff.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/38553#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list