|
@@ 150-154 (lines=5) @@
|
| 147 |
|
} |
| 148 |
|
|
| 149 |
|
// Only add to feedback, only to spam view |
| 150 |
|
if ( 'edit-feedback' != $screen->id |
| 151 |
|
|| empty( $_GET['post_status'] ) |
| 152 |
|
|| 'spam' !== $_GET['post_status'] ) { |
| 153 |
|
return; |
| 154 |
|
} |
| 155 |
|
|
| 156 |
|
// Get HTML for the button |
| 157 |
|
$button_html = wp_nonce_field( 'bulk-destroy', '_destroy_nonce', true, false ); |
|
@@ 805-807 (lines=3) @@
|
| 802 |
|
$screen = get_current_screen(); |
| 803 |
|
|
| 804 |
|
// Only add to feedback, only to non-spam view |
| 805 |
|
if ( 'edit-feedback' != $screen->id || ( ! empty( $_GET['post_status'] ) && 'spam' == $_GET['post_status'] ) ) { |
| 806 |
|
return; |
| 807 |
|
} |
| 808 |
|
|
| 809 |
|
// Add the scripts that handle the spam check event. |
| 810 |
|
wp_register_script( |