diff --git a/inc/installer b/inc/installer index 3801d44..bceb8d1 160000 --- a/inc/installer +++ b/inc/installer @@ -1 +1 @@ -Subproject commit 3801d4476a82092770ada5d48dd695d22606501e +Subproject commit bceb8d1e089c62d4fa543f3b4dc7fbd5d39937f8 diff --git a/so-css.php b/so-css.php index b8c3a47..ee0f874 100644 --- a/so-css.php +++ b/so-css.php @@ -71,6 +71,13 @@ public function __construct() { } } elseif ( ! class_exists( 'SiteOrigin_Installer' ) ) { include plugin_dir_path( __FILE__ ) . 'inc/installer/siteorigin-installer.php'; + if ( + ! class_exists( 'SiteOrigin_Panels' ) && + ! class_exists( 'SiteOrigin_Widgets_Bundle' ) && + ! class_exists( 'SiteOrigin_Premium' ) + ) { + add_filter( 'siteorigin_add_installer', array( $this, 'manage_installer' ) ); + } } } @@ -89,6 +96,14 @@ public static function single() { return $single; } + public function manage_installer( $status ) { + // If the user hasn't enabled/disabled the installer, disable it by default. + if ( empty( get_option( 'siteorigin_installer' ) ) ) { + $status = false; + } + return $status; + } + /** * Retrieve the current custom CSS for a given theme and post id combination. * diff --git a/tpl/page.php b/tpl/page.php index c66a58f..63cf58f 100644 --- a/tpl/page.php +++ b/tpl/page.php @@ -67,9 +67,7 @@