Sunday, March 27, 2016

Remove all unrelated Redux dev and non-dev items

Version: 3.5.5 (Things might have changed now)

enqueue.php Comment out following section

         /* Hide Ads                          if ( isset( $this->parent->args['dev_mode'] ) && $this->parent->args['dev_mode'] == true ) {                              $nonce                               = wp_create_nonce( 'redux-ads-nonce' );                              $base                                = admin_url( 'admin-ajax.php' ) . '?action=redux_p&nonce=' . $nonce . '&url=';                              $this->parent->localize_data['rAds'] = Redux_Helpers::rURL_fix( $base, $this->parent->args['opt_name'] );                          }                          */  

framework.php Comment out following section

  // hide ads                      /*                      if ( $this->args['dev_mode'] == true || Redux_Helpers::isLocalHost() == true ) {                          require_once 'core/dashboard.php';                            if ( ! isset ( $GLOBALS['redux_notice_check'] ) ) {                              require_once 'core/newsflash.php';                                $params = array(                                  'dir_name'    => 'notice',                                  'server_file' => 'http://ift.tt/193lSSb' . 'wp-content/uploads/redux/redux_notice.json',                                  'interval'    => 3,                                  'cookie_id'   => 'redux_blast',                              );                                new reduxNewsflash( $this, $params );                              $GLOBALS['redux_notice_check'] = 1;                          }                      }                      */  


from Envato Forums - Latest posts http://ift.tt/1LT5AQe
via IFTTT

No comments:

Post a Comment