From 5cf899c20bd4db8f519f37d38db647135e419e0c Mon Sep 17 00:00:00 2001 From: Tom McFarlin Date: Wed, 15 May 2013 10:02:10 -0400 Subject: [PATCH] updating references in comments and in code to the plugin class files and plugin files related #48 --- plugin-name/class-plugin-name.php | 1 + plugin-name/plugin-name.php | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/plugin-name/class-plugin-name.php b/plugin-name/class-plugin-name.php index e6446fe..68ee6a3 100644 --- a/plugin-name/class-plugin-name.php +++ b/plugin-name/class-plugin-name.php @@ -93,6 +93,7 @@ class PluginName { * @return object A single instance of this class. */ public static function get_instance() { + // If the single instance hasn't been set, set it now. if ( null == self::$instance ) { self::$instance = new self; diff --git a/plugin-name/plugin-name.php b/plugin-name/plugin-name.php index a573b95..38d440e 100644 --- a/plugin-name/plugin-name.php +++ b/plugin-name/plugin-name.php @@ -29,13 +29,13 @@ if ( ! defined( 'WPINC' ) ) { die; } -// TODO: replace `class-plugin-boilerplate.php` with the name of the actual plugin's class file -require_once( plugin_dir_path( __FILE__ ) . 'class-plugin-boilerplate.php' ); +// 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. -// TODO: replace PluginName with the name of the plugin defined in `class-plugin-boilerplate.php` +// TODO: replace PluginName with the name of the plugin defined in `class-plugin-name.php` register_activation_hook( __FILE__, array( 'PluginName', 'activate' ) ); register_deactivation_hook( __FILE__, array( 'PluginName', 'deactivate' ) ); -// TODO: replace PluginName with the name of the plugin defined in `class-plugin-boilerplate.php` +// TODO: replace PluginName with the name of the plugin defined in `class-plugin-name.php` PluginName::get_instance(); \ No newline at end of file