Changeset 2282705
- Timestamp:
- 04/13/2020 11:04:57 PM (6 years ago)
- Location:
- sendpress/trunk
- Files:
-
- 3 edited
-
classes/class-sendpress-error.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
sendpress.php (modified) (10 diffs)
Legend:
- Unmodified
- Added
- Removed
-
sendpress/trunk/classes/class-sendpress-error.php
r1680117 r2282705 11 11 static function log($args) { 12 12 //Only Log data if not in production 13 if( defined('WP_DEBUG') && WP_DEBUG === true ||defined("SENDPRESS_LOG_ERROR") ){13 if( defined('WP_DEBUG') && WP_DEBUG === true && defined("SENDPRESS_LOG_ERROR") ){ 14 14 if ( isset($args) ) { 15 15 if ( !is_array($args) && !is_object($args) ) { -
sendpress/trunk/readme.txt
r2263997 r2282705 5 5 Requires at least: 4.4 6 6 Tested up to: 5.4 7 Stable tag: 1.20. 3.197 Stable tag: 1.20.4.13 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 119 119 Previous releases can be downloaded from [GitHub](https://github.com/brewlabs/sendpress/releases) 120 120 121 1.20.4.13 - 2020.4.13 = 122 * fix issue with extra log data in logs 123 121 124 1.20.3.19 - 2020.3.19 = 122 125 * fix issue with admin area redirect -
sendpress/trunk/sendpress.php
r2263997 r2282705 2 2 /* 3 3 Plugin Name: SendPress Newsletters 4 Version: 1.20. 3.194 Version: 1.20.4.13 5 5 Plugin URI: https://sendpress.com 6 6 Description: Easy to manage Newsletters for WordPress. … … 20 20 define( 'SENDPRESS_API_VERSION', 1 ); 21 21 define( 'SENDPRESS_MINIMUM_WP_VERSION', '3.6' ); 22 define( 'SENDPRESS_VERSION', '1.20. 3.19' );22 define( 'SENDPRESS_VERSION', '1.20.4.13' ); 23 23 define( 'SENDPRESS_URL', plugin_dir_url( __FILE__ ) ); 24 24 define( 'SENDPRESS_PATH', plugin_dir_path( __FILE__ ) ); … … 372 372 } else { 373 373 SendPress_Pro_Manager::init(); 374 SendPress_Error::log('render_init'); 375 add_action( 'admin_init', array( $this, 'admin_init' ) ); 374 add_action( 'admin_init', array( $this, 'admin_init' ) ); 376 375 add_action( 'admin_menu', array( $this, 'admin_menu' ) ); 377 376 add_action( 'admin_notices', array( $this, 'admin_notice' ) ); … … 400 399 add_action( 'wp_loaded', array( 'SendPress_Cron' , 'auto_cron' ) ); 401 400 add_filter( 'cron_schedules', array( 'SendPress_Cron', 'cron_schedules' ) ); 402 SendPress_Error::log('render_init2');403 404 401 } 405 402 … … 858 855 //MAKE SURE WE ARE ON AN ADMIN PAGE 859 856 if ( SPNL()->validate->page() !== false ) { 860 SendPress_Error::log('page'); 861 $this->_page = SPNL()->validate->page(); 857 $this->_page = SPNL()->validate->page(); 862 858 $this->_current_view = isset( $_GET['view'] ) ? sanitize_text_field( $_GET['view'] ) : ''; 863 859 … … 942 938 $tiny = new SendPress_TinyMCE(); 943 939 944 SendPress_Error::log($view_class); 945 946 //Securiry check for view 940 //Securiry check for view 947 941 $view_class = NEW $view_class; 948 942 $view_class->admin_init(); 949 SendPress_Error::log($view_class);950 943 add_action( 'sendpress_admin_scripts', array( $view_class, 'admin_scripts_load' ) ); 951 944 $this->_current_action = isset( $_GET['action'] ) ? sanitize_text_field( $_GET['action'] ) : ''; … … 1247 1240 function admin_menu() { 1248 1241 1249 SendPress_Error::log('menu');1250 1242 if ( current_user_can( 'sendpress_view' ) ) { 1251 1243 $role = "sendpress_view"; … … 1278 1270 ) ); 1279 1271 1280 SendPress_Error::log('emails');1281 1272 if( apply_filters( 'spnl_emails', true ) ) { 1282 SendPress_Error::log('test');1283 SendPress_Error::log($role);1284 1273 add_submenu_page( 'sp-overview', __( 'Emails', 'sendpress' ), __( 'Emails', 'sendpress' ), $role, 'sp-emails', array( 1285 1274 &$this, … … 1335 1324 1336 1325 function render_view() { 1337 SendPress_Error::log('renderx4'); 1338 $view_class = $this->get_view_class( $this->_page, $this->_current_view ); 1326 $view_class = $this->get_view_class( $this->_page, $this->_current_view ); 1339 1327 //echo "About to render: $view_class, $this->_page"; 1340 1328 $view_class = NEW $view_class; 1341 1329 $queue = '<span id="queue-count-menu-tab">-</span>'; 1342 1330 //$queue = //SendPress_Data::emails_in_queue(); 1343 SendPress_Error::log('render'); 1344 //add tabs 1331 //add tabs 1345 1332 $view_class->add_tab( __( 'Overview', 'sendpress' ), 'sp-overview', ( $this->_page === 'sp-overview' ) ); 1346 1333 … … 1372 1359 $view_class->add_tab( __( 'Pro', 'sendpress' ), 'sp-pro', ( $this->_page === 'sp-pro' ) ); 1373 1360 } 1374 SendPress_Error::log('render'); 1375 SendPress_Error::log($view_class); 1361 1376 1362 $view_class->prerender( $this ); 1377 1363 $view_class->render( $this );
Note: See TracChangeset
for help on using the changeset viewer.