[ Index ]

MailPress 7.2

[ Index ]     [ Classes ]     [ Functions ]     [ Variables ]     [ Constants ]     [ Statistics ]    

title

Body

[close]

/mp-admin/includes/settings/batches/batch_send/ -> update.php (source)

   1  <?php // batch_send => no sanitize here, selects and radio buttons 
   2  
   3  if ( !( function_exists( 'current_user_can' ) && current_user_can( MP_AdminPage::capability ) ) ) die( 'Access denied' );
   4  
   5  if ( isset( MP_AdminPage::$pst_['batch_send'] ) ) 
   6  {
   7      $batch_send = MP_AdminPage::$pst_['batch_send'];
   8  
   9      $old_batch_send = get_option( MailPress_batch_send::option_name );
  10  
  11      update_option( MailPress_batch_send::option_name, $batch_send );
  12  
  13      if ( !isset( $old_batch_send['batch_mode'] ) )
  14      {
  15          $old_batch_send['batch_mode'] = '';
  16      }
  17  
  18      if ( $old_batch_send['batch_mode'] != $batch_send['batch_mode'] )
  19      {
  20          if ( 'wpcron' != $batch_send['batch_mode'] )
  21          {
  22              wp_clear_scheduled_hook( MailPress_batch_send::process_name );
  23          }
  24          else
  25          {
  26              MailPress_batch_send::schedule();
  27          }
  28      }
  29  }


Generated: Tue May 19 15:55:14 2020 Cross-referenced by PHPXref 0.7.1