Skip to content

Commit

Permalink
Fixed CS.
Browse files Browse the repository at this point in the history
  • Loading branch information
christophherr committed Sep 20, 2018
1 parent c378521 commit d67b494
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
7 changes: 6 additions & 1 deletion functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,12 @@
* @link https://www.christophherr.com/
*/

function get_genesis_version() {
/**
* Get the version of the Genesis framework.
*
* @return string
*/
function prometheus_2_get_genesis_version() {
return wp_get_theme( 'genesis' )->get( 'Version' );
}

Expand Down
6 changes: 3 additions & 3 deletions lib/minimum-requirements.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ function prometheus_2_show_deactivation_and_upgrade_notice() {
* @return string
*/
function prometheus_2_upgrade_message() {
$genesis_version = get_genesis_version();
$compare_wp_version = version_compare( $GLOBALS['wp_version'], '4.8', '<' );
$compare_php_version = version_compare( PHP_VERSION, '5.6', '<' );
$genesis_version = prometheus_2_get_genesis_version();
$compare_wp_version = version_compare( $GLOBALS['wp_version'], '4.8', '<' );
$compare_php_version = version_compare( PHP_VERSION, '5.6', '<' );
$compare_genesis_version = version_compare( $genesis_version, '2.6', '<' );

if ( $compare_wp_version && $compare_php_version && $compare_genesis_version ) {
Expand Down

0 comments on commit d67b494

Please sign in to comment.