From 8a771b91b183d2051dbf676f6c607bcfd7e77c4f Mon Sep 17 00:00:00 2001 From: Thomas Griffin Date: Thu, 2 Feb 2012 23:22:22 -0500 Subject: [PATCH] updated to v2.3.2 to fix bug not referencing class --- README | 6 +++++- tgm-plugin-activation/class-tgm-plugin-activation.php | 4 ++-- tgm-plugin-activation/example.php | 2 +- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/README b/README index f73b8ab1..4a090798 100644 --- a/README +++ b/README @@ -1,7 +1,7 @@ === TGM Plugin Activation === Contributors: Thomas Griffin (@jthomasgriffin / thomasgriffinmedia.com) Gary Jones (Github: @GaryJones / Twitter: GaryJ) -Version: 2.3.1 +Version: 2.3.2 Requires at least: 3.0.0 Tested up to: 3.3.1 @@ -35,6 +35,10 @@ You can also follow project progress and updates on Twitter. Follow us here at h == Changelog == += 2.3.2 = + +* Fixed bug (100%) with not loading class properly + = 2.3.1 = * Fixed bug with not finding class (reverted back to Plugin_Upgrader) diff --git a/tgm-plugin-activation/class-tgm-plugin-activation.php b/tgm-plugin-activation/class-tgm-plugin-activation.php index 52533347..36c2ef36 100755 --- a/tgm-plugin-activation/class-tgm-plugin-activation.php +++ b/tgm-plugin-activation/class-tgm-plugin-activation.php @@ -3,7 +3,7 @@ * Plugin installation and activation for WordPress themes. * * @package TGM-Plugin-Activation - * @version 2.3.1 + * @version 2.3.2 * @author Thomas Griffin * @author Gary Jones * @copyright Copyright (c) 2012, Thomas Griffin @@ -1585,7 +1585,7 @@ public function prepare_items() { * * @since 2.2.0 */ -if ( ! class_exists( 'WP_Upgrader' ) && isset( $_GET[sanitize_key( 'page' )] ) && TGM_Plugin_Activation::$instance->menu == $_GET[sanitize_key( 'page' )] ) { +if ( ! class_exists( 'WP_Upgrader' ) && ( isset( $_GET[sanitize_key( 'page' )] ) && TGM_Plugin_Activation::$instance->menu = $_GET[sanitize_key( 'page' )] ) ) { require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php'; if ( ! class_exists( 'TGM_Bulk_Installer' ) ) { diff --git a/tgm-plugin-activation/example.php b/tgm-plugin-activation/example.php index 8bd705b0..39aa5624 100755 --- a/tgm-plugin-activation/example.php +++ b/tgm-plugin-activation/example.php @@ -8,7 +8,7 @@ * * @package TGM-Plugin-Activation * @subpackage Example - * @version 2.3.1 + * @version 2.3.2 * @author Thomas Griffin * @author Gary Jones * @copyright Copyright (c) 2012, Thomas Griffin