Skip to content

Commit

Permalink
Simplify setting of plugin version
Browse files Browse the repository at this point in the history
  • Loading branch information
AlecRust committed Apr 7, 2024
1 parent 5a1007d commit 71a7900
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions includes/core.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,9 @@ class Protected_Video
*/
public function __construct()
{
if (defined('PROTECTED_VIDEO_VERSION')) {
$this->version = PROTECTED_VIDEO_VERSION;
} else {
$this->version = '1.0.0';
}
$this->version = defined('PROTECTED_VIDEO_VERSION')
? PROTECTED_VIDEO_VERSION
: '1.0.0';
$this->plugin_name = 'protected-video';
}

Expand Down

0 comments on commit 71a7900

Please sign in to comment.