Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,9 +24,9 @@ class Plugin_Name { | |
* | ||
* @since 1.0.0 | ||
* | ||
* @var string | ||
* @const string | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
GeertDD
Author
Contributor
|
||
*/ | ||
protected $version = '1.0.0'; | ||
const VERSION = '1.0.0'; | ||
|
||
/** | ||
* Unique identifier for your plugin. | ||
|
1 comment
on commit 4d629b5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Furthermore, while this has been changed to a constant, it's former $this->version
is still used when enqueueing scripts and styles.
There has never been a
@const
tag for PHPDoc. The ideal is the as-yet-unsupported@type
tag, or more likely the default@var
.