Skip to content

Commit

Permalink
use Jetpack::is_plugin_active, code alignment
Browse files Browse the repository at this point in the history
  • Loading branch information
mattwiebe authored and jeherve committed Aug 26, 2019
1 parent dee3063 commit 2bf46e2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sal/class.json-api-site-jetpack.php
Original file line number Diff line number Diff line change
Expand Up @@ -188,10 +188,10 @@ function current_user_can( $role ) {
}

function is_fse_active() {
$fse_enabled = is_plugin_active( 'full-site-editing/full-site-editing-plugin.php' );
$has_method = method_exists( '\A8C\FSE\Full_Site_Editing', 'is_supported_theme' );
$fse_enabled = Jetpack::is_plugin_active( 'full-site-editing/full-site-editing-plugin.php' );
$has_method = method_exists( '\A8C\FSE\Full_Site_Editing', 'is_supported_theme' );
if ( $fse_enabled && $has_method ) {
$fse = \A8C\FSE\Full_Site_Editing::get_instance();
$fse = \A8C\FSE\Full_Site_Editing::get_instance();
$slug = get_option( 'stylesheet' );
return $fse->is_supported_theme( $slug );
}
Expand Down

0 comments on commit 2bf46e2

Please sign in to comment.