From b8231ac64bbe076df0bc21a92bf49eb8b7b05b4e Mon Sep 17 00:00:00 2001 From: Barry Ceelen Date: Thu, 12 Sep 2013 01:42:07 +0200 Subject: [PATCH 1/2] Removes reference to register_uninstall_hook from code comment Perhaps mention uninstall.php in stead? ``` // Register hooks that are fired when the plugin is activated or deactivated. // When the plugin is deleted, the uninstall.php file is loaded. ``` --- plugin-name/plugin-name.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin-name/plugin-name.php b/plugin-name/plugin-name.php index dc19807..cc9e5d2 100644 --- a/plugin-name/plugin-name.php +++ b/plugin-name/plugin-name.php @@ -32,7 +32,7 @@ if ( ! defined( 'WPINC' ) ) { // TODO: replace `class-plugin-name.php` with the name of the actual plugin's class file require_once( plugin_dir_path( __FILE__ ) . 'class-plugin-name.php' ); -// Register hooks that are fired when the plugin is activated, deactivated, and uninstalled, respectively. +// Register hooks that are fired when the plugin is activated or deactivated. // TODO: replace Plugin_Name with the name of the plugin defined in `class-plugin-name.php` register_activation_hook( __FILE__, array( 'Plugin_Name', 'activate' ) ); register_deactivation_hook( __FILE__, array( 'Plugin_Name', 'deactivate' ) ); From af2bd993efbd43274a7ae11804bc68fead029c41 Mon Sep 17 00:00:00 2001 From: Barry Date: Thu, 12 Sep 2013 17:58:52 +0200 Subject: [PATCH 2/2] Mention uninstall.php in code comment --- plugin-name/plugin-name.php | 1 + 1 file changed, 1 insertion(+) diff --git a/plugin-name/plugin-name.php b/plugin-name/plugin-name.php index cc9e5d2..cf69120 100644 --- a/plugin-name/plugin-name.php +++ b/plugin-name/plugin-name.php @@ -33,6 +33,7 @@ if ( ! defined( 'WPINC' ) ) { require_once( plugin_dir_path( __FILE__ ) . 'class-plugin-name.php' ); // Register hooks that are fired when the plugin is activated or deactivated. +// When the plugin is deleted, the uninstall.php file is loaded. // TODO: replace Plugin_Name with the name of the plugin defined in `class-plugin-name.php` register_activation_hook( __FILE__, array( 'Plugin_Name', 'activate' ) ); register_deactivation_hook( __FILE__, array( 'Plugin_Name', 'deactivate' ) );