From e34f85e67085ce69b75e96cdf5283080b63ade7f Mon Sep 17 00:00:00 2001 From: Pascal Birchler Date: Wed, 25 Mar 2015 10:39:04 +0100 Subject: [PATCH] Remove obsolete plugin activation hooks --- README.md | 8 +++++++- README.txt | 8 +++++++- wp-widget-disable.php | 9 +-------- 3 files changed, 15 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 8ce97f7..3d914d5 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ **Tags:** widgets, admin, dashboard, sidebar widgets, dashboard widgets, disable widgets **Requires at least:** 3.5.1 **Tested up to:** 4.2 -**Stable tag:** 1.1.1 +**Stable tag:** 1.1.2 **License:** GPLv2 or later **License URI:** http://www.gnu.org/licenses/gpl-2.0.html @@ -63,6 +63,9 @@ No Screenshots yet. ## Changelog ## +### 1.1.2 ### +* Fixed: Removed obsolote hooks that caused an error on plugin (de)activation. + ### 1.1.1 ### * New: Repdigit version number. * Fixed: Added correct changelog. @@ -86,6 +89,9 @@ No Screenshots yet. ## Upgrade Notice ## +### 1.1.2 ### +Removed obsolte code that caused an error on plugin activation. + ### 1.1.1 ### Small changes in this version, only some changelog & translation cleaning. diff --git a/README.txt b/README.txt index 691419b..fca0a57 100755 --- a/README.txt +++ b/README.txt @@ -4,7 +4,7 @@ Donate link: http://required.ch/ Tags: widgets, admin, dashboard, sidebar widgets, dashboard widgets, disable widgets Requires at least: 3.5.1 Tested up to: 4.2 -Stable tag: 1.1.1 +Stable tag: 1.1.2 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html @@ -63,6 +63,9 @@ No Screenshots yet. == Changelog == += 1.1.2 = +* Fixed: Removed obsolote hooks that caused an error on plugin (de)activation. + = 1.1.1 = * New: Repdigit version number. * Fixed: Added correct changelog. @@ -86,6 +89,9 @@ No Screenshots yet. == Upgrade Notice == += 1.1.2 = +Removed obsolte code that caused an error on plugin activation. + = 1.1.1 = Small changes in this version, only some changelog & translation cleaning. diff --git a/wp-widget-disable.php b/wp-widget-disable.php index 0a29d2a..4fdc81d 100755 --- a/wp-widget-disable.php +++ b/wp-widget-disable.php @@ -15,7 +15,7 @@ * Plugin Name: WP Widget Disable * Plugin URI: https://github.com/wearerequired/WP-Widget-Disable * Description: Disable WordPress and Dashboard Widgets with an easy to use interface. Simply use the checkboxes provided under Appearance -> Disable Widgets and select the Widgets you'd like to hide. - * Version: 1.1.1 + * Version: 1.1.2 * Author: required+ * Author URI: http://required.ch * Text Domain: wp-widget-disable @@ -33,13 +33,6 @@ *----------------------------------------------------------------------------*/ require_once( plugin_dir_path( __FILE__ ) . '/public/class-wp-widget-disable.php' ); -/* - * Register hooks that are fired when the plugin is activated or deactivated. - * When the plugin is deleted, the uninstall.php file is loaded. - */ -register_activation_hook( __FILE__, array( 'WP_Widget_Disable', 'activate' ) ); -register_deactivation_hook( __FILE__, array( 'WP_Widget_Disable', 'deactivate' ) ); - add_action( 'plugins_loaded', array( 'WP_Widget_Disable', 'get_instance' ) ); /*----------------------------------------------------------------------------*