refactor: rename version constant

This commit is contained in:
Ben Goldsworthy 2021-04-27 08:47:50 +01:00
parent 748eda717b
commit 4bcd8991ca
2 changed files with 6 additions and 4 deletions

View file

@ -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').

View file

@ -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';
} }