From a978b45c51667388d737d4aa7a22b4368dc27d8b Mon Sep 17 00:00:00 2001 From: Nate Weller Date: Wed, 24 Jul 2024 15:33:43 -0600 Subject: [PATCH] Update test --- .../sync/test_class.jetpack-sync-options.php | 2 +- .../js/routes/scan/scan-section-context.tsx | 32 ------------------- projects/plugins/wpcomsh/composer.json | 2 +- projects/plugins/wpcomsh/package.json | 2 +- projects/plugins/wpcomsh/wpcomsh.php | 4 +-- 5 files changed, 5 insertions(+), 37 deletions(-) delete mode 100644 projects/plugins/protect/src/js/routes/scan/scan-section-context.tsx diff --git a/projects/plugins/jetpack/tests/php/sync/test_class.jetpack-sync-options.php b/projects/plugins/jetpack/tests/php/sync/test_class.jetpack-sync-options.php index 2af71d3bd935a..dfd370af20f5d 100644 --- a/projects/plugins/jetpack/tests/php/sync/test_class.jetpack-sync-options.php +++ b/projects/plugins/jetpack/tests/php/sync/test_class.jetpack-sync-options.php @@ -268,7 +268,7 @@ public function test_sync_default_options() { 'jetpack_scheduled_plugins_update' => array(), 'jetpack_waf_automatic_rules' => false, 'jetpack_waf_ip_allow_list' => 'pineapple', - 'jetpack_waf_ip_allow_list_enabled' => true, + 'jetpack_waf_ip_allow_list_enabled' => false, 'jetpack_waf_ip_block_list' => 'pineapple', 'jetpack_waf_ip_block_list_enabled' => false, 'jetpack_waf_share_data' => true, diff --git a/projects/plugins/protect/src/js/routes/scan/scan-section-context.tsx b/projects/plugins/protect/src/js/routes/scan/scan-section-context.tsx deleted file mode 100644 index 24bf4193d5244..0000000000000 --- a/projects/plugins/protect/src/js/routes/scan/scan-section-context.tsx +++ /dev/null @@ -1,32 +0,0 @@ -import React, { createContext, useContext, useState, ReactNode } from 'react'; - -// Define the shape of the context value -interface ScanSectionContextValue { - filter: string | null; - setFilter: ( value: string | null ) => void; -} - -// Create the context with a default value -const ScanSectionContext = createContext< ScanSectionContextValue | undefined >( undefined ); - -// Create a provider component -const ScanSectionContextProvider: React.FC< { children: ReactNode } > = ( { children } ) => { - const [ filter, setFilter ] = useState< string | null >( null ); - - return ( - - { children } - - ); -}; - -// Custom hook to use the filter context -const useScanSectionContext = (): ScanSectionContextValue => { - const context = useContext( ScanSectionContext ); - if ( context === undefined ) { - throw new Error( 'useScanSectionContext must be used within a FilterProvider' ); - } - return context; -}; - -export { ScanSectionContextProvider, useScanSectionContext }; diff --git a/projects/plugins/wpcomsh/composer.json b/projects/plugins/wpcomsh/composer.json index 89c32ce0db16d..02030e41b2a87 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_3" + "autoloader-suffix": "26841ac2064774301cbe06d174833bfc_wpcomshⓥ5_0_4_alpha" }, "extra": { "mirror-repo": "Automattic/wpcom-site-helper", diff --git a/projects/plugins/wpcomsh/package.json b/projects/plugins/wpcomsh/package.json index b00ce4bb3e41e..98e5eb31aa329 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.3", + "version": "5.0.4-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 74f3ad7682830..43b478367c932 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.3 + * Version: 5.0.4-alpha * Author: Automattic * Author URI: http://automattic.com/ * * @package wpcomsh */ -define( 'WPCOMSH_VERSION', '5.0.3' ); +define( 'WPCOMSH_VERSION', '5.0.4-alpha' ); // If true, Typekit fonts will be available in addition to Google fonts add_filter( 'jetpack_fonts_enable_typekit', '__return_true' );