From d74e37d022062a79f5a343a0c3d681c5adbe18e1 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 5 Dec 2022 06:54:29 +0000 Subject: [PATCH 1/4] Bump decode-uri-component from 0.2.0 to 0.2.2 Bumps [decode-uri-component](https://github.com/SamVerschueren/decode-uri-component) from 0.2.0 to 0.2.2. - [Release notes](https://github.com/SamVerschueren/decode-uri-component/releases) - [Commits](https://github.com/SamVerschueren/decode-uri-component/compare/v0.2.0...v0.2.2) --- updated-dependencies: - dependency-name: decode-uri-component dependency-type: indirect ... Signed-off-by: dependabot[bot] --- package-lock.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index fe1c6c1..825aca2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -20,9 +20,9 @@ } }, "decode-uri-component": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/decode-uri-component/-/decode-uri-component-0.2.0.tgz", - "integrity": "sha1-6zkTMzRYd1y4TNGh+uBiEGu4dUU=" + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/decode-uri-component/-/decode-uri-component-0.2.2.tgz", + "integrity": "sha512-FqUYQ+8o158GyGTrMFJms9qh3CqTKvAqgqsTnkLI8sKu0028orqBhxNMFkFen0zGyg6epACD32pjVk58ngIErQ==" }, "inherits": { "version": "2.0.4", From e6468f20f64e62702ecde69deb5d9f13001cd627 Mon Sep 17 00:00:00 2001 From: Alex S <17275120+AlexGStapleton@users.noreply.github.com> Date: Fri, 11 Aug 2023 14:07:17 +1200 Subject: [PATCH 2/4] Update Installer --- inc/installer | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/installer b/inc/installer index 3801d44..046f121 160000 --- a/inc/installer +++ b/inc/installer @@ -1 +1 @@ -Subproject commit 3801d4476a82092770ada5d48dd695d22606501e +Subproject commit 046f121b382bfc72f57c3194737075b10afda9f5 From 4e614948019e42c0fe1bd82c72be470fa7894a77 Mon Sep 17 00:00:00 2001 From: Alex S <17275120+AlexGStapleton@users.noreply.github.com> Date: Fri, 11 Aug 2023 14:08:59 +1200 Subject: [PATCH 3/4] Disable Installer By Default --- so-css.php | 15 +++++++++++++++ tpl/page.php | 11 +++++------ 2 files changed, 20 insertions(+), 6 deletions(-) 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 @@

    - custom_css_revisions_list( $theme, $socss_post_id, $current_revision ); -?> + custom_css_revisions_list( $theme, $socss_post_id, $current_revision ); ?>
@@ -129,8 +127,9 @@
@@ -145,7 +144,7 @@ type="checkbox" name="installer_status" class="installer_status" - + data-nonce="" > From 6ec9517db55454da83c8cae478d145a8088edab6 Mon Sep 17 00:00:00 2001 From: Alex S <17275120+AlexGStapleton@users.noreply.github.com> Date: Sat, 12 Aug 2023 03:46:26 +1200 Subject: [PATCH 4/4] Update Installer --- inc/installer | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/installer b/inc/installer index 046f121..bceb8d1 160000 --- a/inc/installer +++ b/inc/installer @@ -1 +1 @@ -Subproject commit 046f121b382bfc72f57c3194737075b10afda9f5 +Subproject commit bceb8d1e089c62d4fa543f3b4dc7fbd5d39937f8