[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 20:21:06 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:  Awaiting Review
Component:  Comments      |    Version:  3.6
 Severity:  normal        |   Keywords:
--------------------------+-----------------------------
 To reproduce simply call comment_form('fields=author'); with WP_DEBUG
 switched on. It will result in the following errors:

 PHP Warning:  Illegal string offset 'format' in /path/to/wordpress/wp-
 includes/comment-template.php on line 1610
 PHP Warning:  Illegal string offset 'format' in /path/to/wordpress/wp-
 includes/comment-template.php on line 1614

 This appears to be a bug introduced in 3.6.

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


More information about the wp-trac mailing list