[wp-trac] [WordPress Trac] #25151: comment_form() function treats $args as array before passing $args through wp_parse_args()

WordPress Trac noreply at wordpress.org
Mon Aug 26 21:45:42 UTC 2013


#25151: comment_form() function treats $args as array before passing $args through
wp_parse_args()
--------------------------+--------------------
 Reporter:  tomdxw        |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  3.6.1
Component:  Comments      |     Version:  3.6
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |
--------------------------+--------------------

Comment (by SergeyBiryukov):

 Replying to [comment:4 nacin]:
 > If `current_theme_supports( 'html5', 'comment-form' ) ? 'html5' :
 'xhtml'` is added to the `$defaults` array for `'format'`, would that
 work? Then these lines could be removed.

 No, we use it to set `$fields`, which is a part of `$defaults` array
 itself: [source:tags/3.6/wp-includes/comment-template.php#L1614].

--
Ticket URL: <http://core.trac.wordpress.org/ticket/25151#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list