diff options
Diffstat (limited to 'plugins/jetpack/modules/after-the-deadline/config-unignore.php')
-rw-r--r-- | plugins/jetpack/modules/after-the-deadline/config-unignore.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/jetpack/modules/after-the-deadline/config-unignore.php b/plugins/jetpack/modules/after-the-deadline/config-unignore.php index d8394d7b..43c36a72 100644 --- a/plugins/jetpack/modules/after-the-deadline/config-unignore.php +++ b/plugins/jetpack/modules/after-the-deadline/config-unignore.php @@ -12,6 +12,8 @@ function AtD_ignore_call() { if ( ! $user || $user->ID == 0 ) return; + check_admin_referer( 'atd_ignore' ); + $ignores = explode( ',', AtD_get_setting( $user->ID, 'AtD_ignored_phrases') ); array_push( $ignores, $_GET['phrase'] ); @@ -111,7 +113,7 @@ function atd_ignore () { function atd_ignore_init() { jQuery( '#AtD_message' ).hide(); - jQuery( '#atd_ignores' ).delegate( 'a', 'click', function() { + jQuery( '#atd_ignores' ).on( 'click', 'a', function() { atd_unignore( jQuery(this).data( 'ignored' ) ); return false; } ); |