From 2bf46e27f6fe6a06e7fb6a6a37075bf5165560df Mon Sep 17 00:00:00 2001 From: Matt Wiebe Date: Thu, 22 Aug 2019 12:50:12 -0500 Subject: [PATCH] use `Jetpack::is_plugin_active`, code alignment --- sal/class.json-api-site-jetpack.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sal/class.json-api-site-jetpack.php b/sal/class.json-api-site-jetpack.php index 6a6ef8ccf483f..b7c9c569fec46 100644 --- a/sal/class.json-api-site-jetpack.php +++ b/sal/class.json-api-site-jetpack.php @@ -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 ); }