Browse files

fixes bug that caused core upgrades to fail

  • Loading branch information...
1 parent b16d552 commit 978a928b14cabec561d056e54f0d64540987ab6c @thomasgriffin thomasgriffin committed Jan 5, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 tgm-plugin-activation/class-tgm-plugin-activation.php
View
2 tgm-plugin-activation/class-tgm-plugin-activation.php
@@ -1571,7 +1571,7 @@ public function prepare_items() {
*
* @since 2.2.0
*/
-if ( ! class_exists( 'WP_Upgrader' ) && ( ! isset( $_GET[sanitize_key( 'action' )] ) || ! isset( $_GET[sanitize_key( 'activate' )] ) ) ) {
+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' ) ) {

0 comments on commit 978a928

Please sign in to comment.