Skip to content

Commit

Permalink
Fixed minor CF version compare error
Browse files Browse the repository at this point in the history
  • Loading branch information
dmhendricks committed Oct 20, 2018
1 parent ec446b5 commit f503487
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ private function verify_dependencies( $die = false ) {
$cf_version = defined('\\Carbon_Fields\\VERSION') ? current( explode( '-', \Carbon_Fields\VERSION ) ) : null;
if( !$cf_version ) {
$res->add_error( __( 'The Carbon Fields framework is not loaded.', self::$textdomain ) );
} else if( version_compare( $cf_version, self::$config->get( 'dependencies/carbon_fields' ), '>' ) ) {
} else if( version_compare( $cf_version, self::$config->get( 'dependencies/carbon_fields' ), '<' ) ) {
$res->add_error( sprintf( __( 'An outdated version of Carbon Fields has been detected: %s (&gt;= %s required).', self::$textdomain ), $cf_version, self::$config->get( 'dependencies/carbon_fields' ) ) );
}
});
Expand Down
2 changes: 1 addition & 1 deletion app/Settings/Customizer_Options.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class Customizer_Options extends Plugin {
function __construct() {

// Create a default section name based on the plugin's slug
$slug = StringHelper::underscores( self::$config->get( 'plugin/slug' ) );
$slug = StringHelper::slugify( self::$config->get( 'plugin/slug' ), '_' );

// Define Customizer sections and fields
$this->customizer = Customizer_Framework::init();
Expand Down

0 comments on commit f503487

Please sign in to comment.