From 4bcd8991ca94b3811987914662217a9a5a07cc1e Mon Sep 17 00:00:00 2001 From: Rumperuu Date: Tue, 27 Apr 2021 08:47:50 +0100 Subject: [PATCH] refactor: rename version constant --- src/footnotes.php | 4 +++- src/includes/class-footnotes.php | 6 +++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/footnotes.php b/src/footnotes.php index 39cfc78..1f31b75 100755 --- a/src/footnotes.php +++ b/src/footnotes.php @@ -35,8 +35,10 @@ if ( ! defined( 'WPINC' ) ) { /** * 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'). diff --git a/src/includes/class-footnotes.php b/src/includes/class-footnotes.php index 568a726..9c59cf0 100644 --- a/src/includes/class-footnotes.php +++ b/src/includes/class-footnotes.php @@ -36,7 +36,7 @@ class Footnotes { protected $loader; /** - * The unique identifier of this plugin. + * The unique identifier of this plugin * * @since 2.8.0 * @access protected @@ -63,8 +63,8 @@ class Footnotes { * @since 1.0.0 */ public function __construct() { - if ( defined( 'C_STR_FOOTNOTES_VERSION' ) ) { - $this->version = C_STR_FOOTNOTES_VERSION; + if ( defined( 'PLUGIN_VERSION' ) ) { + $this->version = PLUGIN_VERSION; } else { $this->version = '0.0.0'; }