#29704 closed defect (bug) (fixed)
wp_ajax_replyto_comment does not define $comment_type before compact()
Reported by: | nerrad | Owned by: | wonderboymusic |
---|---|---|---|
Milestone: | 4.1 | Priority: | normal |
Severity: | normal | Version: | 4.0 |
Component: | Comments | Keywords: | has-patch |
Focuses: | Cc: |
Description
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.
Attachments (1)
Change History (5)
#2
@
10 years ago
- Milestone changed from Awaiting Review to 4.1
- Summary changed from wp_ajax_replyto_comment doesen't define $comment_type before compact() to wp_ajax_replyto_comment does not define $comment_type before compact()
Note: See
TracTickets for help on using
tickets.
define $comment_type