[wp-trac] [WordPress Trac] #34059: Abstract functionality from wp-comments-post.php

WordPress Trac noreply at wordpress.org
Sat Oct 3 01:11:51 UTC 2015


#34059: Abstract functionality from wp-comments-post.php
---------------------------------------------+--------------------------
 Reporter:  johnbillion                      |       Owner:  johnbillion
     Type:  task (blessed)                   |      Status:  assigned
 Priority:  normal                           |   Milestone:  4.4
Component:  Comments                         |     Version:
 Severity:  normal                           |  Resolution:
 Keywords:  has-patch has-unit-tests commit  |     Focuses:
---------------------------------------------+--------------------------
Changes (by johnbillion):

 * keywords:  has-patch has-unit-tests dev-feedback => has-patch has-unit-
     tests commit


Comment:

 In [attachment:34059.5.diff]:

  * Renames `wp_handle_comment_post()` to `wp_handle_comment_submission()`.
  * Initialises the `$comment_*` variables to avoid the ternaries.
  * Adds a test for comment content that contains slashes.

 I think this is good to go.

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


More information about the wp-trac mailing list