Changeset 1489834
- Timestamp:
- 09/04/2016 08:04:55 PM (8 years ago)
- Location:
- mailgun-subscriptions/trunk
- Files:
-
- 11 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
mailgun-subscriptions/trunk/Mailgun_Subscriptions/Admin_Page.php
r1469692 r1489834 198 198 'default' => 0, 199 199 ) 200 201 202 203 204 205 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.'; 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. 9 9 Text Domain: mailgun-subscriptions 10 10 Domain Path: /languages … … 14 14 15 15 function mailgun_subscriptions_load() { 16 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. 7 License: 8 License URI: http 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 24 25 26 27 28 29 30 31 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(); 8 8 9 9 function mailgun_clear_cron() { … … 18 18 function mailgun_clear_options() { 19 19 foreach ( array( 20 20 21 'mailgun_api_key', 21 22 'mailgun_api_public_key', 23 24 22 25 'mailgun_confirmation_page', 23 'mailgun_ confirmation_expiration',24 'mailgun_ confirmation_email_template',26 'mailgun_', 27 'mailgun_n_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.