@@ 140-144 (lines=5) @@ | ||
137 | } |
|
138 | ||
139 | // Only add to feedback, only to spam view |
|
140 | if ( 'edit-feedback' != $screen->id |
|
141 | || empty( $_GET['post_status'] ) |
|
142 | || 'spam' !== $_GET['post_status'] ) { |
|
143 | return; |
|
144 | } |
|
145 | ||
146 | // Get HTML for the button |
|
147 | $button_html = wp_nonce_field( 'bulk-destroy', '_destroy_nonce', true, false ); |
|
@@ 794-796 (lines=3) @@ | ||
791 | $screen = get_current_screen(); |
|
792 | ||
793 | // Only add to feedback, only to non-spam view |
|
794 | if ( 'edit-feedback' != $screen->id || ( ! empty( $_GET['post_status'] ) && 'spam' == $_GET['post_status'] ) ) { |
|
795 | return; |
|
796 | } |
|
797 | ||
798 | // Add the scripts that handle the spam check event. |
|
799 | wp_register_script( 'grunion-admin', plugin_dir_url( __FILE__ ) . 'js/grunion-admin.js', array( 'jquery' ) ); |