[wp-trac] [WordPress Trac] #22039: Undefined index: hook_suffix notice on wp_ajax_get_comments
WordPress Trac
wp-trac at lists.automattic.com
Fri Sep 28 17:55:56 UTC 2012
#22039: Undefined index: hook_suffix notice on wp_ajax_get_comments
-----------------------------+--------------------------
Reporter: c3mdigital | Type: defect (bug)
Status: new | Priority: normal
Milestone: Awaiting Review | Component: Comments
Version: trunk | Severity: normal
Keywords: has-patch |
-----------------------------+--------------------------
This is part 1 of a two part bug on displaying comments on post.php
The undifined index notice in the ajax response causes the error "an
unidentified error has occurred" in the Comments post meta box.
{{{
( ! ) Notice: Undefined index: hook_suffix in /Users/chris/Sites/wp-trunk
/wp-admin/includes/screen.php on line 401
Call Stack
# Time Memory Function Location
1 0.0004 254360 {main}( ) ../admin-ajax.php:0
2 0.2893 18405672 do_action( ) ../admin-ajax.php:69
3 0.2894 18407160 call_user_func_array ( )
../plugin.php:406
4 0.2894 18407192 wp_ajax_get_comments( ) ../plugin.php:406
5 0.2895 18408880 _get_list_table( ) ../ajax-
actions.php:682
6 0.2920 18603376 WP_Comments_List_Table->__construct( )
../list-table.php:49
7 0.2921 18604688 WP_List_Table->__construct( ) ../class-
wp-comments-list-table.php:36
8 0.2921 18605480 convert_to_screen( ) ../class-wp-list-
table.php:88
9 0.2921 18605480 WP_Screen::get( )
../template.php:1873
}}}
Calling global $hook_suffix; in WP_Screen::get(); fixes the notice.
Related #21101
--
Ticket URL: <http://core.trac.wordpress.org/ticket/22039>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list