From b5549d5f9cc427c6406d52954c139419a5426495 Mon Sep 17 00:00:00 2001 From: Tom McFarlin Date: Mon, 5 May 2014 00:18:04 -0400 Subject: [PATCH] defining a base class from which all other components can inherit also getting rid of the version constant in place of a properly, defining a single entry point with the run function, and defining the plugin slug as a property --- plugin-name/trunk/includes/class-plugin-name.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/plugin-name/trunk/includes/class-plugin-name.php b/plugin-name/trunk/includes/class-plugin-name.php index 9bbec62..fe6bd73 100644 --- a/plugin-name/trunk/includes/class-plugin-name.php +++ b/plugin-name/trunk/includes/class-plugin-name.php @@ -23,6 +23,20 @@ */ class Plugin_Name { + protected $plugin_slug = 'plugin-name-slug'; + + protected $version = '1.0.0'; + + protected $loader; + + public function __construct( Plugin_Name_Loader $loader = NULL ) { + $this->loader = $loader; + } + + public function run() { + $this->loader->run(); + } + /** * This class is used to define common functionality that exists between * both the dashboard and the public-facing side of the website. Think