[wp-trac] [WordPress Trac] #38477: Missing validation while posting comment via REST API

WordPress Trac noreply at wordpress.org
Mon Oct 31 02:28:03 UTC 2016


#38477: Missing validation while posting comment via REST API
--------------------------+--------------------
 Reporter:  mangeshp      |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  4.7
Component:  REST API      |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:
--------------------------+--------------------

Comment (by pento):

 I'm starting to think it's worth the effort of merging the sanity checking
 in `wp_handle_comment_submission()` and `WP_REST_Comments_Controller`.
 Between this and #38506, there's a bit too much logic duplication going on
 that I really don't want us to have to maintain.

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


More information about the wp-trac mailing list