Changeset 1489834
- Timestamp:
- 09/04/2016 08:04:55 PM (10 years ago)
- Location:
- mailgun-subscriptions/trunk
- Files:
-
- 11 added
- 5 edited
-
Mailgun_Subscriptions/Admin_Page.php (modified) (1 diff)
-
Mailgun_Subscriptions/Plugin.php (modified) (3 diffs)
-
composer.json (added)
-
mailgun-subscriptions.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
-
uninstall.php (modified) (2 diffs)
-
vendor (added)
-
vendor/autoload.php (added)
-
vendor/composer (added)
-
vendor/composer/ClassLoader.php (added)
-
vendor/composer/LICENSE (added)
-
vendor/composer/autoload_classmap.php (added)
-
vendor/composer/autoload_namespaces.php (added)
-
vendor/composer/autoload_psr4.php (added)
-
vendor/composer/autoload_real.php (added)
-
vendor/composer/installed.json (added)
Legend:
- Unmodified
- Added
- Removed
-
mailgun-subscriptions/trunk/Mailgun_Subscriptions/Admin_Page.php
r1469692 r1489834 198 198 'default' => 0, 199 199 ) 200 ); 201 202 register_setting( 203 self::MENU_SLUG, 204 self::OPTION_ACCOUNT_PAGE, 205 'intval' 200 206 ); 201 207 } -
mailgun-subscriptions/trunk/Mailgun_Subscriptions/Plugin.php
r1469692 r1489834 6 6 7 7 class Plugin { 8 const VERSION = '1.1. 1';8 const VERSION = '1.1.2'; 9 9 10 10 /** @var Plugin */ … … 68 68 private function setup( $plugin_file ) { 69 69 self::$plugin_file = $plugin_file; 70 spl_autoload_register( array( __CLASS__, 'autoload' ) );71 70 if ( is_admin() ) { 72 71 $this->setup_admin_page(); … … 205 204 return self::$instance; 206 205 } 207 208 public static function autoload( $class ) {209 if (substr($class, 0, strlen(__NAMESPACE__)) != __NAMESPACE__) {210 //Only autoload libraries from this package211 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 }219 206 } -
mailgun-subscriptions/trunk/mailgun-subscriptions.php
r1469692 r1489834 6 6 Author: Flightless 7 7 Author URI: http://flightless.us/ 8 Version: 1.1. 18 Version: 1.1.2 9 9 Text Domain: mailgun-subscriptions 10 10 Domain Path: /languages … … 14 14 15 15 function mailgun_subscriptions_load() { 16 require_once( __DIR__ . '/vendor/autoload.php' ); 16 17 add_action( 'init', 'mailgun_load_textdomain', 10, 0 ); 17 18 if ( mailgun_subscriptions_version_check() ) { 18 require_once('Mailgun_Subscriptions/Plugin.php');19 19 \Mailgun_Subscriptions\Plugin::init(__FILE__); 20 20 } else { -
mailgun-subscriptions/trunk/readme.txt
r1469692 r1489834 4 4 Requires at least: 3.9 5 5 Tested up to: 4.6 6 Stable tag: 1.1. 17 License: BSD 3-Clause8 License URI: http ://opensource.org/licenses/BSD-3-Clause6 Stable tag: 1.1.2 7 License: GPL-2.0 8 License URI: https://opensource.org/licenses/GPL-2.0 9 9 10 10 Add a Mailgun subscription form to your WordPress site. Your visitors can use the form to subscribe to your lists using the Mailgun API. … … 21 21 == Changelog == 22 22 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 23 33 = 1.1 = 24 34 -
mailgun-subscriptions/trunk/uninstall.php
r994371 r1489834 5 5 } 6 6 7 require_once( 'Mailgun_Subscriptions/Cleanup.php');7 require_once( __DIR__ . '/vendor/autoload.php' ); 8 8 9 9 function mailgun_clear_cron() { … … 18 18 function mailgun_clear_options() { 19 19 foreach ( array( 20 'mailgun_account_management_page', 20 21 'mailgun_api_key', 21 22 'mailgun_api_public_key', 23 'mailgun_confirmation_email_template', 24 'mailgun_confirmation_expiration', 22 25 'mailgun_confirmation_page', 23 'mailgun_ confirmation_expiration',24 'mailgun_ confirmation_email_template',26 'mailgun_lists', 27 'mailgun_token_email_template', 25 28 'mailgun_welcome_email_template', 26 'mailgun_lists',27 29 ) as $option ) { 28 30 delete_option( $option );
Note: See TracChangeset
for help on using the changeset viewer.