/**
  * Get things rolling
  *
  * @since 2.7.4
  * @return void
  */
 function __construct()
 {
     //Bail if we aren't in the admin.
     if (!is_admin()) {
         return false;
     }
     if (!WPN_Helper::is_func_disabled('ignore_user_abort')) {
         ignore_user_abort(true);
     }
     //        if ( ! nf_is_func_disabled( 'set_time_limit' ) && ! ini_get( 'safe_mode' ) ) {
     //            //set_time_limit( 0 );
     //        }
     add_action('wp_ajax_nf_' . $this->action, array($this, 'processing'));
 }
示例#2
0
function nf_is_func_disabled($function)
{
    Ninja_Forms::deprecated_notice('nf_is_func_disabled', '3.0', 'WPN_Helper::is_func_disabled()', debug_backtrace());
    return WPN_Helper::is_func_disabled($function);
}