From 35b0ce199fc85e0783162258ab4791ad9d00d8c2 Mon Sep 17 00:00:00 2001 From: "okmttdhr, tada" Date: Fri, 26 Jul 2024 12:49:22 +0900 Subject: [PATCH] Revert "Footer credit: Remove customizer option for block themes" (#38557) This reverts commit 1c418b92353abcefc35d87cc1a4dd02375eb2f51. --- .../revert-38473-remove-footer-credit-customizer | 4 ++++ projects/plugins/wpcomsh/composer.json | 2 +- .../wpcomsh/footer-credit/footer-credit/customizer.php | 9 ++------- projects/plugins/wpcomsh/package.json | 2 +- projects/plugins/wpcomsh/wpcomsh.php | 4 ++-- 5 files changed, 10 insertions(+), 11 deletions(-) create mode 100644 projects/plugins/wpcomsh/changelog/revert-38473-remove-footer-credit-customizer diff --git a/projects/plugins/wpcomsh/changelog/revert-38473-remove-footer-credit-customizer b/projects/plugins/wpcomsh/changelog/revert-38473-remove-footer-credit-customizer new file mode 100644 index 0000000000000..200c9484c0f77 --- /dev/null +++ b/projects/plugins/wpcomsh/changelog/revert-38473-remove-footer-credit-customizer @@ -0,0 +1,4 @@ +Significance: patch +Type: fixed + +Fix the "The parent theme is missing" issue diff --git a/projects/plugins/wpcomsh/composer.json b/projects/plugins/wpcomsh/composer.json index d24c83b4e46b2..873fac095cad8 100644 --- a/projects/plugins/wpcomsh/composer.json +++ b/projects/plugins/wpcomsh/composer.json @@ -129,7 +129,7 @@ "composer/installers": true, "roots/wordpress-core-installer": true }, - "autoloader-suffix": "26841ac2064774301cbe06d174833bfc_wpcomshⓥ5_0_1" + "autoloader-suffix": "26841ac2064774301cbe06d174833bfc_wpcomshⓥ5_0_2_alpha" }, "extra": { "mirror-repo": "Automattic/wpcom-site-helper", diff --git a/projects/plugins/wpcomsh/footer-credit/footer-credit/customizer.php b/projects/plugins/wpcomsh/footer-credit/footer-credit/customizer.php index 6f3215aad4509..27afdc2cc3e39 100644 --- a/projects/plugins/wpcomsh/footer-credit/footer-credit/customizer.php +++ b/projects/plugins/wpcomsh/footer-credit/footer-credit/customizer.php @@ -134,10 +134,5 @@ function footercredits_sanitize_setting( $val ) { } } -/** - * Setup the Footer Credit customizer settings and controls for classic themes only - * We don't support the footer credit on block themes, see https://wp.me/paYJgx-51l. - */ -if ( ! wp_is_block_theme() ) { - add_action( 'customize_register', 'footercredits_register', 99 ); -} +// Setup the Theme Customizer settings and controls... +add_action( 'customize_register', 'footercredits_register', 99 ); diff --git a/projects/plugins/wpcomsh/package.json b/projects/plugins/wpcomsh/package.json index ee6bb6bcab1ad..727b40734d24a 100644 --- a/projects/plugins/wpcomsh/package.json +++ b/projects/plugins/wpcomsh/package.json @@ -3,7 +3,7 @@ "name": "@automattic/jetpack-wpcomsh", "description": "A helper for connecting WordPress.com sites to external host infrastructure.", "homepage": "https://jetpack.com", - "version": "5.0.1", + "version": "5.0.2-alpha", "bugs": { "url": "https://github.com/Automattic/jetpack/labels/[Plugin] Wpcomsh" }, diff --git a/projects/plugins/wpcomsh/wpcomsh.php b/projects/plugins/wpcomsh/wpcomsh.php index 297a03092f966..45f370b206bff 100644 --- a/projects/plugins/wpcomsh/wpcomsh.php +++ b/projects/plugins/wpcomsh/wpcomsh.php @@ -2,14 +2,14 @@ /** * Plugin Name: WordPress.com Site Helper * Description: A helper for connecting WordPress.com sites to external host infrastructure. - * Version: 5.0.1 + * Version: 5.0.2-alpha * Author: Automattic * Author URI: http://automattic.com/ * * @package wpcomsh */ -define( 'WPCOMSH_VERSION', '5.0.1' ); +define( 'WPCOMSH_VERSION', '5.0.2-alpha' ); // If true, Typekit fonts will be available in addition to Google fonts add_filter( 'jetpack_fonts_enable_typekit', '__return_true' );