|
@@ 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 ); |
|
@@ 803-805 (lines=3) @@
|
| 800 |
|
$screen = get_current_screen(); |
| 801 |
|
|
| 802 |
|
// Only add to feedback, only to non-spam view |
| 803 |
|
if ( 'edit-feedback' != $screen->id || ( ! empty( $_GET['post_status'] ) && 'spam' == $_GET['post_status'] ) ) { |
| 804 |
|
return; |
| 805 |
|
} |
| 806 |
|
|
| 807 |
|
// Add the scripts that handle the spam check event. |
| 808 |
|
wp_register_script( 'grunion-admin', plugin_dir_url( __FILE__ ) . 'js/grunion-admin.js', array( 'jquery' ) ); |