|
@@ 158-162 (lines=5) @@
|
| 155 |
|
} |
| 156 |
|
|
| 157 |
|
// Only add to feedback, only to spam view |
| 158 |
|
if ( 'edit-feedback' != $screen->id |
| 159 |
|
|| empty( $_GET['post_status'] ) |
| 160 |
|
|| 'spam' !== $_GET['post_status'] ) { |
| 161 |
|
return; |
| 162 |
|
} |
| 163 |
|
|
| 164 |
|
// Get HTML for the button |
| 165 |
|
$button_html = wp_nonce_field( 'bulk-destroy', '_destroy_nonce', true, false ); |
|
@@ 812-814 (lines=3) @@
|
| 809 |
|
$screen = get_current_screen(); |
| 810 |
|
|
| 811 |
|
// Only add to feedback, only to non-spam view |
| 812 |
|
if ( 'edit-feedback' != $screen->id || ( ! empty( $_GET['post_status'] ) && 'spam' == $_GET['post_status'] ) ) { |
| 813 |
|
return; |
| 814 |
|
} |
| 815 |
|
|
| 816 |
|
// Add the scripts that handle the spam check event. |
| 817 |
|
wp_register_script( 'grunion-admin', plugin_dir_url( __FILE__ ) . 'js/grunion-admin.js', array( 'jquery' ) ); |