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