[wp-trac] [WordPress Trac] #29704: wp_ajax_replyto_comment doesen't define $comment_type before compact()

WordPress Trac noreply at wordpress.org
Thu Sep 18 14:06:35 UTC 2014


#29704: wp_ajax_replyto_comment doesen't define $comment_type before compact()
--------------------------+-----------------------------
 Reporter:  nerrad        |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Comments      |    Version:  4.0
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 In the `wp_ajax_replyto_comment()` ajax action callback (`wp-
 admin/includes/ajax-actions.php`) compact is called with comment_type as a
 param.  However the variable $comment_type is not defined anywhere.  This
 leads to potential undefined index errors down the chain when it is
 assumed $commentdata has 'comment_type' ) set.

 Patch coming.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/29704>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list