AtD_ignore_call

Called by the TinyMCE plugin when Ignore Always is clicked (setup as an action through admin-ajax.php).

Description

AtD_ignore_call(); 

Usage

  1. if ( !function_exists( 'AtD_ignore_call' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'jetpack-by-wordpress-com/modules/after-the-deadline/config-unignore.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = AtD_ignore_call(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/modules/after-the-deadline/config-unignore.php  
  1. function AtD_ignore_call() { 
  2.  
  3. if ( ! AtD_is_allowed() ) 
  4. return; 
  5.  
  6. $user = wp_get_current_user(); 
  7.  
  8. if ( ! $user || $user->ID == 0 ) 
  9. return; 
  10.  
  11. check_admin_referer( 'atd_ignore' ); 
  12.  
  13. $ignores = explode( ', ', AtD_get_setting( $user->ID, 'AtD_ignored_phrases') ); 
  14. array_push( $ignores, $_GET['phrase'] ); 
  15.  
  16. $ignores = array_filter( array_map( 'strip_tags', $ignores ) ); 
  17.  
  18. AtD_update_setting( $user->ID, 'AtD_ignored_phrases', implode( ', ', $ignores ) ); 
  19.  
  20. header( 'Content-Type: text/xml' ); 
  21. echo '<success></success>'; 
  22. die();