WordPress.org

Plugin Directory

Changeset 1489834


Ignore:
Timestamp:
09/04/16 20:04:55 (15 months ago)
Author:
jbrinley
Message:

version 1.1.2 - bugfixes

Location:
mailgun-subscriptions/trunk
Files:
11 added
5 edited

Legend:

Unmodified
Added
Removed
  • mailgun-subscriptions/trunk/Mailgun_Subscriptions/Admin_Page.php

    r1469692 r1489834  
    198198                'default' => 0, 
    199199            ) 
     200        ); 
     201 
     202        register_setting( 
     203            self::MENU_SLUG, 
     204            self::OPTION_ACCOUNT_PAGE, 
     205            'intval' 
    200206        ); 
    201207    } 
  • mailgun-subscriptions/trunk/Mailgun_Subscriptions/Plugin.php

    r1469692 r1489834  
    66 
    77class Plugin { 
    8     const VERSION = '1.1.1'; 
     8    const VERSION = '1.1.2'; 
    99 
    1010    /** @var Plugin */ 
     
    6868    private function setup( $plugin_file ) { 
    6969        self::$plugin_file = $plugin_file; 
    70         spl_autoload_register( array( __CLASS__, 'autoload' ) ); 
    7170        if ( is_admin() ) { 
    7271            $this->setup_admin_page(); 
     
    205204        return self::$instance; 
    206205    } 
    207  
    208     public static function autoload( $class ) { 
    209         if (substr($class, 0, strlen(__NAMESPACE__)) != __NAMESPACE__) { 
    210             //Only autoload libraries from this package 
    211             return; 
    212         } 
    213         $path = str_replace('\\', DIRECTORY_SEPARATOR, $class); 
    214         $path = dirname(self::$plugin_file) . DIRECTORY_SEPARATOR . $path . '.php'; 
    215         if (file_exists($path)) { 
    216             require $path; 
    217         } 
    218     } 
    219206}  
  • mailgun-subscriptions/trunk/mailgun-subscriptions.php

    r1469692 r1489834  
    66Author: Flightless 
    77Author URI: http://flightless.us/ 
    8 Version: 1.1.1 
     8Version: 1.1.2 
    99Text Domain: mailgun-subscriptions 
    1010Domain Path: /languages 
     
    1414 
    1515    function mailgun_subscriptions_load() { 
     16        require_once( __DIR__ . '/vendor/autoload.php' ); 
    1617        add_action( 'init', 'mailgun_load_textdomain', 10, 0 ); 
    1718        if ( mailgun_subscriptions_version_check() ) { 
    18             require_once('Mailgun_Subscriptions/Plugin.php'); 
    1919            \Mailgun_Subscriptions\Plugin::init(__FILE__); 
    2020        } else { 
  • mailgun-subscriptions/trunk/readme.txt

    r1469692 r1489834  
    44Requires at least: 3.9 
    55Tested up to: 4.6 
    6 Stable tag: 1.1.1 
    7 License: BSD 3-Clause 
    8 License URI: http://opensource.org/licenses/BSD-3-Clause 
     6Stable tag: 1.1.2 
     7License: GPL-2.0 
     8License URI: https://opensource.org/licenses/GPL-2.0 
    99 
    1010Add a Mailgun subscription form to your WordPress site. Your visitors can use the form to subscribe to your lists using the Mailgun API. 
     
    2121== Changelog == 
    2222 
     23= 1.1.2 = 
     24 
     25* Fix fatal error during uninstall 
     26* Fix error saving account management page ID 
     27 
     28= 1.1.1 = 
     29 
     30* Validate email address when requesting token to manage account 
     31* Disable caching of subscription management page 
     32 
    2333= 1.1 = 
    2434 
  • mailgun-subscriptions/trunk/uninstall.php

    r994371 r1489834  
    55} 
    66 
    7 require_once('Mailgun_Subscriptions/Cleanup.php'); 
     7require_once( __DIR__ . '/vendor/autoload.php' ); 
    88 
    99function mailgun_clear_cron() { 
     
    1818function mailgun_clear_options() { 
    1919    foreach ( array( 
     20        'mailgun_account_management_page', 
    2021        'mailgun_api_key', 
    2122        'mailgun_api_public_key', 
     23        'mailgun_confirmation_email_template', 
     24        'mailgun_confirmation_expiration', 
    2225        'mailgun_confirmation_page', 
    23         'mailgun_confirmation_expiration', 
    24         'mailgun_confirmation_email_template', 
     26        'mailgun_lists', 
     27        'mailgun_token_email_template', 
    2528        'mailgun_welcome_email_template', 
    26         'mailgun_lists', 
    2729    ) as $option ) { 
    2830        delete_option( $option ); 
Note: See TracChangeset for help on using the changeset viewer.