| 1 | Index: wp-admin/includes/template.php |
|---|
| 2 | =================================================================== |
|---|
| 3 | --- wp-admin/includes/template.php (revision 17913) |
|---|
| 4 | +++ wp-admin/includes/template.php (working copy) |
|---|
| 5 | @@ -323,6 +323,8 @@ |
|---|
| 6 | * @param unknown_type $mode |
|---|
| 7 | */ |
|---|
| 8 | function wp_comment_reply($position = '1', $checkbox = false, $mode = 'single', $table_row = true) { |
|---|
| 9 | + global $wp_list_table; |
|---|
| 10 | + |
|---|
| 11 | // allow plugin to replace the popup content |
|---|
| 12 | $content = apply_filters( 'wp_comment_reply', '', array('position' => $position, 'checkbox' => $checkbox, 'mode' => $mode) ); |
|---|
| 13 | |
|---|
| 14 | @@ -331,10 +333,12 @@ |
|---|
| 15 | return; |
|---|
| 16 | } |
|---|
| 17 | |
|---|
| 18 | - if ( $mode == 'single' ) { |
|---|
| 19 | - $wp_list_table = _get_list_table('WP_Post_Comments_List_Table'); |
|---|
| 20 | - } else { |
|---|
| 21 | - $wp_list_table = _get_list_table('WP_Comments_List_Table'); |
|---|
| 22 | + if ( ! ( is_object( $wp_list_table ) && is_a( $wp_list_table, 'WP_Comments_List_Table' ) ) ) { |
|---|
| 23 | + if ( $mode == 'single' ) { |
|---|
| 24 | + $wp_list_table = _get_list_table('WP_Post_Comments_List_Table'); |
|---|
| 25 | + } else { |
|---|
| 26 | + $wp_list_table = _get_list_table('WP_Comments_List_Table'); |
|---|
| 27 | + } |
|---|
| 28 | } |
|---|
| 29 | |
|---|
| 30 | ?> |
|---|
| 31 | @@ -1742,7 +1746,7 @@ |
|---|
| 32 | |
|---|
| 33 | if ( !empty($wp_current_screen_options) ) |
|---|
| 34 | $show_screen = true; |
|---|
| 35 | - |
|---|
| 36 | + |
|---|
| 37 | $show_screen = apply_filters('screen_options_show_screen', $show_screen, $screen); |
|---|
| 38 | |
|---|
| 39 | ?> |
|---|