Exemplo n.º 1
0
 protected function verify_nonce()
 {
     $nonce = $this->request->query('_wpnonce');
     if (!Social::wp39_verify_nonce($nonce, $this->request->action())) {
         Social::log('NONCE Failure', array(), null, true);
         wp_die('Oops, please try again.');
     }
 }
Exemplo n.º 2
0
 /**
  * Sends a request to initialize CRON 15.
  *
  * @wp-action  socialcron15init
  * @return void
  */
 public function cron_15_init()
 {
     Social::log('Running cron_15_init');
     Social_Request::factory('cron/cron_15')->query('api_key', Social::option('system_cron_api_key'))->execute();
 }