Skip to content

Commit 5828d48

Browse files
committed
finish bad sync of files :( and version bump
1 parent bbeda18 commit 5828d48

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
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

src/abstract_plugin.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
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() ) {

0 commit comments

Comments
 (0)