mirror of
https://github.com/inretio/WordPress-Plugin-Boilerplate
synced 2024-12-22 11:53:53 +02:00
Updating PLUGIN_VERSION to PLUGIN_NAME_VERSION to follow plugin standards for renaming
This commit is contained in:
parent
1f36abcedd
commit
04f90ff5ff
2 changed files with 3 additions and 3 deletions
|
@ -67,8 +67,8 @@ class Plugin_Name {
|
|||
* @since 1.0.0
|
||||
*/
|
||||
public function __construct() {
|
||||
if ( defined( 'PLUGIN_VERSION' ) ) {
|
||||
$this->version = PLUGIN_VERSION;
|
||||
if ( defined( 'PLUGIN_NAME_VERSION' ) ) {
|
||||
$this->version = PLUGIN_NAME_VERSION;
|
||||
} else {
|
||||
$this->version = '1.0.0';
|
||||
}
|
||||
|
|
|
@ -30,7 +30,7 @@ if ( ! defined( 'WPINC' ) ) {
|
|||
die;
|
||||
}
|
||||
|
||||
define( 'PLUGIN_VERSION', '1.0.0' );
|
||||
define( 'PLUGIN_NAME_VERSION', '1.0.0' );
|
||||
|
||||
/**
|
||||
* The code that runs during plugin activation.
|
||||
|
|
Loading…
Reference in a new issue