File tree Expand file tree Collapse file tree 2 files changed +11
-4
lines changed
Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change 1+ #### 2.0.2
2+ * Large rewrite to handle namespaces and psr-4 option
3+ * Alpha sorted parameter and function names
4+ * Uses namespace matching filter for better performance
5+ * Now requires use of namespaces to properly load files
6+ * Updated documentation
7+
18#### 1.1.3
29* Fixed filename to follow PSR-4 standard requirement
310
Original file line number Diff line number Diff line change 44 *
55 * @author Seth Carstens
66 * @package abtract-plugin-base
7- * @version 2.0.1
7+ * @version 2.0.2
88 * @license GPL 2.0 - please retain comments that express original build of this file by the author.
99 */
1010
@@ -65,7 +65,7 @@ abstract class Abstract_Plugin {
6565 *
6666 * @var string $current_file
6767 */
68- protected $ current_file = __FILE__ ;
68+ protected static $ current_file = __FILE__ ;
6969
7070 /**
7171 * Filename prefix standard for WordPress when the file represents a class
@@ -190,8 +190,8 @@ public function autoload( $class ) {
190190 protected function configure_defaults () {
191191 $ this ->modules = new \stdClass ();
192192 $ this ->modules ->count = 0 ;
193- $ this ->installed_dir = dirname ( $ this -> current_file );
194- $ this ->installed_url = plugins_url ( '/ ' , $ this -> current_file );
193+ $ this ->installed_dir = dirname ( static :: $ current_file );
194+ $ this ->installed_url = plugins_url ( '/ ' , static :: $ current_file );
195195
196196 // Setup network url and fallback in case siteurl is not defined.
197197 if ( ! defined ( 'WP_NETWORKURL ' ) && is_multisite () ) {
You can’t perform that action at this time.
0 commit comments