Plugin Directory

Changeset 2282705


Ignore:
Timestamp:
04/13/2020 11:04:57 PM (6 years ago)
Author:
brewlabs
Message:

log fix release

Location:
sendpress/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • sendpress/trunk/classes/class-sendpress-error.php

    r1680117 r2282705  
    1111    static function log($args) {
    1212        //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") ){
    1414            if ( isset($args) ) {
    1515                if ( !is_array($args) && !is_object($args) ) {
  • sendpress/trunk/readme.txt

    r2263997 r2282705  
    55Requires at least: 4.4
    66Tested up to: 5.4
    7 Stable tag: 1.20.3.19
     7Stable tag: 1.20.4.13
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    119119Previous releases can be downloaded from [GitHub](https://github.com/brewlabs/sendpress/releases)
    120120
     121 1.20.4.13 - 2020.4.13 =
     122* fix issue with extra log data in logs
     123
    121124 1.20.3.19 - 2020.3.19 =
    122125* fix issue with admin area redirect
  • sendpress/trunk/sendpress.php

    r2263997 r2282705  
    22/*
    33Plugin Name: SendPress Newsletters
    4 Version: 1.20.3.19
     4Version: 1.20.4.13
    55Plugin URI: https://sendpress.com
    66Description: Easy to manage Newsletters for WordPress.
     
    2020define( 'SENDPRESS_API_VERSION', 1 );
    2121define( 'SENDPRESS_MINIMUM_WP_VERSION', '3.6' );
    22 define( 'SENDPRESS_VERSION', '1.20.3.19' );
     22define( 'SENDPRESS_VERSION', '1.20.4.13' );
    2323define( 'SENDPRESS_URL', plugin_dir_url( __FILE__ ) );
    2424define( 'SENDPRESS_PATH', plugin_dir_path( __FILE__ ) );
     
    372372        } else {
    373373            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' ) );
    376375            add_action( 'admin_menu', array( $this, 'admin_menu' ) );
    377376            add_action( 'admin_notices', array( $this, 'admin_notice' ) );
     
    400399                add_action( 'wp_loaded', array( 'SendPress_Cron' , 'auto_cron' ) );
    401400                add_filter( 'cron_schedules', array( 'SendPress_Cron', 'cron_schedules' ) );
    402             SendPress_Error::log('render_init2');
    403 
    404401        }
    405402       
     
    858855        //MAKE SURE WE ARE ON AN ADMIN PAGE
    859856        if ( SPNL()->validate->page() !== false ) {
    860             SendPress_Error::log('page');
    861             $this->_page = SPNL()->validate->page();
     857            $this->_page = SPNL()->validate->page();
    862858            $this->_current_view = isset( $_GET['view'] ) ? sanitize_text_field( $_GET['view'] ) : '';
    863859
     
    942938            $tiny                = new SendPress_TinyMCE();
    943939
    944             SendPress_Error::log($view_class);
    945            
    946             //Securiry check for view
     940            //Securiry check for view
    947941            $view_class = NEW $view_class;
    948942            $view_class->admin_init();
    949             SendPress_Error::log($view_class);
    950943            add_action( 'sendpress_admin_scripts', array( $view_class, 'admin_scripts_load' ) );
    951944            $this->_current_action = isset( $_GET['action'] ) ? sanitize_text_field( $_GET['action'] ) : '';
     
    12471240    function admin_menu() {
    12481241
    1249         SendPress_Error::log('menu');
    12501242        if ( current_user_can( 'sendpress_view' ) ) {
    12511243            $role = "sendpress_view";
     
    12781270            ) );
    12791271
    1280         SendPress_Error::log('emails');
    12811272        if( apply_filters( 'spnl_emails', true ) ) {
    1282             SendPress_Error::log('test');
    1283             SendPress_Error::log($role);
    12841273            add_submenu_page( 'sp-overview', __( 'Emails', 'sendpress' ), __( 'Emails', 'sendpress' ), $role, 'sp-emails', array(
    12851274                &$this,
     
    13351324
    13361325    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 );
    13391327        //echo "About to render: $view_class, $this->_page";
    13401328        $view_class = NEW $view_class;
    13411329        $queue      = '<span id="queue-count-menu-tab">-</span>';
    13421330        //$queue = //SendPress_Data::emails_in_queue();
    1343         SendPress_Error::log('render');
    1344         //add tabs
     1331        //add tabs
    13451332        $view_class->add_tab( __( 'Overview', 'sendpress' ), 'sp-overview', ( $this->_page === 'sp-overview' ) );
    13461333
     
    13721359            $view_class->add_tab( __( 'Pro', 'sendpress' ), 'sp-pro', ( $this->_page === 'sp-pro' ) );
    13731360        }
    1374         SendPress_Error::log('render');
    1375         SendPress_Error::log($view_class);
     1361
    13761362        $view_class->prerender( $this );
    13771363        $view_class->render( $this );
Note: See TracChangeset for help on using the changeset viewer.