refactor: rename version constant
This commit is contained in:
parent
748eda717b
commit
4bcd8991ca
2 changed files with 6 additions and 4 deletions
|
@ -35,8 +35,10 @@ if ( ! defined( 'WPINC' ) ) {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Current plugin version.
|
* Current plugin version.
|
||||||
|
*
|
||||||
|
* @since 2.1.4
|
||||||
*/
|
*/
|
||||||
define( 'C_STR_FOOTNOTES_VERSION', '2.8.0d' );
|
define( 'PLUGIN_VERSION', '2.8.0d' );
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Defines the current environment ('development' or 'production').
|
* Defines the current environment ('development' or 'production').
|
||||||
|
|
|
@ -36,7 +36,7 @@ class Footnotes {
|
||||||
protected $loader;
|
protected $loader;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The unique identifier of this plugin.
|
* The unique identifier of this plugin
|
||||||
*
|
*
|
||||||
* @since 2.8.0
|
* @since 2.8.0
|
||||||
* @access protected
|
* @access protected
|
||||||
|
@ -63,8 +63,8 @@ class Footnotes {
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
public function __construct() {
|
public function __construct() {
|
||||||
if ( defined( 'C_STR_FOOTNOTES_VERSION' ) ) {
|
if ( defined( 'PLUGIN_VERSION' ) ) {
|
||||||
$this->version = C_STR_FOOTNOTES_VERSION;
|
$this->version = PLUGIN_VERSION;
|
||||||
} else {
|
} else {
|
||||||
$this->version = '0.0.0';
|
$this->version = '0.0.0';
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue