Plugin Directory

Changeset 3354757


Ignore:
Timestamp:
09/02/2025 01:41:20 PM (7 months ago)
Author:
sendpulse
Message:

Updated to 2.2.1 cleanup

Location:
sendpulse-email-marketing-newsletter
Files:
2 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • sendpulse-email-marketing-newsletter/tags/2.2.1/inc/class-sendpulse-newsletter-api.php

    r3354585 r3354757  
    2222    protected $requirement;
    2323
    24 //    public function __construct($apiClient = null)
    25 //    {
    26 //        $user_id = $this->get_option('client_id');
    27 //        $secret = $this->get_option('client_secret');
    28 //
    29 //        $this->requirement = new Send_Pulse_Newsletter_Requirement();
    30 //
    31 //      if (!$apiClient) {
    32 //          $storage       = null;
    33 //          $notice_action = '';
    34 //
    35 //          if ( $this->requirement->is_folder_writable( SP_EMAIL_MARKETING_PLUGIN_STORAGE_DIR ) !== true ) {
    36 //              $storage       = new SessionStorage();
    37 //              $notice_action = 'sp_emp_admin_activated_session_storage_notice';
    38 //          } else {
    39 //              $storage       = new FileStorage( SP_EMAIL_MARKETING_PLUGIN_STORAGE_DIR );
    40 //              $notice_action = 'sp_emp_admin_activated_file_storage_notice';
    41 //          }
    42 //
    43 //          $this->api = new ApiClient( $user_id, $secret, $storage );
    44 //
    45 //          add_action( 'admin_notices', array( $this, $notice_action ) );
    46 //      }
    47 //
    48 //      $this->api = $apiClient;
    49 //        $this->default_book = $this->get_option('default_book');
    50 //    }
    5124    public function __construct($apiClient = null)
    5225    {
  • sendpulse-email-marketing-newsletter/trunk/inc/class-sendpulse-newsletter-api.php

    r3354585 r3354757  
    2222    protected $requirement;
    2323
    24 //    public function __construct($apiClient = null)
    25 //    {
    26 //        $user_id = $this->get_option('client_id');
    27 //        $secret = $this->get_option('client_secret');
    28 //
    29 //        $this->requirement = new Send_Pulse_Newsletter_Requirement();
    30 //
    31 //      if (!$apiClient) {
    32 //          $storage       = null;
    33 //          $notice_action = '';
    34 //
    35 //          if ( $this->requirement->is_folder_writable( SP_EMAIL_MARKETING_PLUGIN_STORAGE_DIR ) !== true ) {
    36 //              $storage       = new SessionStorage();
    37 //              $notice_action = 'sp_emp_admin_activated_session_storage_notice';
    38 //          } else {
    39 //              $storage       = new FileStorage( SP_EMAIL_MARKETING_PLUGIN_STORAGE_DIR );
    40 //              $notice_action = 'sp_emp_admin_activated_file_storage_notice';
    41 //          }
    42 //
    43 //          $this->api = new ApiClient( $user_id, $secret, $storage );
    44 //
    45 //          add_action( 'admin_notices', array( $this, $notice_action ) );
    46 //      }
    47 //
    48 //      $this->api = $apiClient;
    49 //        $this->default_book = $this->get_option('default_book');
    50 //    }
    5124    public function __construct($apiClient = null)
    5225    {
Note: See TracChangeset for help on using the changeset viewer.