From 44cc67d92305229665e34cecffcd8ff09376ceb1 Mon Sep 17 00:00:00 2001 From: Douglas Date: Fri, 18 Sep 2026 18:06:27 -0300 Subject: [PATCH 1/3] Search: retire the wp-build flag and the legacy dashboard bundle The dashboard now always renders through wp-build. The `search-wp-build` flag, its registration in Initializer::init(), and every branch on it are removed, along with the legacy webpack entry (`src/dashboard/index.jsx`) and its config, so the dashboard no longer ships twice. `src/dashboard/scss/admin-layout.scss` goes too: since #52507 the route imports `route.scss`, so only the legacy entry used it. The initial state keeps riding the script-less data handle the wp-build path already used. No other plugin depends on the retired `jp-search-dashboard` handle. Where the package was never built, the page now renders nothing, as My Jetpack's does since #52446. Nothing else in the package uses automattic/jetpack-feature-flags, so the requirement is dropped; the Jetpack and Search plugin locks lose only that edge, since My Jetpack still requires the package. Co-Authored-By: Claude Opus 5 (1M context) --- projects/packages/search/composer.json | 1 - projects/packages/search/package.json | 5 +- .../packages/init/src/jetpack-config.ts | 2 +- .../search/routes/dashboard/stage.tsx | 9 +- .../search/src/dashboard/class-dashboard.php | 117 +++-------- .../packages/search/src/dashboard/index.jsx | 28 --- .../src/dashboard/scss/admin-layout.scss | 6 - .../src/initializers/class-initializer.php | 4 - .../php/Dashboard_Wp_Build_Fallback_Test.php | 192 ------------------ .../tests/php/Dashboard_Wp_Build_Test.php | 104 ++++++++++ .../tests/php/fixtures/wp-build-render.php | 4 +- .../search/tools/webpack.dashboard.config.js | 82 -------- projects/plugins/jetpack/composer.lock | 3 +- projects/plugins/search/composer.lock | 3 +- 14 files changed, 138 insertions(+), 422 deletions(-) delete mode 100644 projects/packages/search/src/dashboard/index.jsx delete mode 100644 projects/packages/search/src/dashboard/scss/admin-layout.scss delete mode 100644 projects/packages/search/tests/php/Dashboard_Wp_Build_Fallback_Test.php create mode 100644 projects/packages/search/tests/php/Dashboard_Wp_Build_Test.php delete mode 100644 projects/packages/search/tools/webpack.dashboard.config.js diff --git a/projects/packages/search/composer.json b/projects/packages/search/composer.json index c26a6cdee444..ad52ebb30f8e 100644 --- a/projects/packages/search/composer.json +++ b/projects/packages/search/composer.json @@ -12,7 +12,6 @@ "automattic/jetpack-config": "@dev", "automattic/jetpack-my-jetpack": "@dev", "automattic/jetpack-sync": "@dev", - "automattic/jetpack-feature-flags": "@dev", "automattic/jetpack-wp-build-polyfills": "@dev" }, "require-dev": { diff --git a/projects/packages/search/package.json b/projects/packages/search/package.json index 27987dc7f752..1838939d2e5a 100644 --- a/projects/packages/search/package.json +++ b/projects/packages/search/package.json @@ -17,7 +17,7 @@ "test": "tests" }, "scripts": { - "build": "pnpm run clean && concurrently 'pnpm:build-instant' 'pnpm:build-customberg' 'pnpm:build-dashboard' 'pnpm:build-inline' 'pnpm:build-blocks' 'pnpm:build-blocks-editor' 'pnpm:build:wp-build' && pnpm run build:stamp-textdomains && pnpm run build:boot-asset", + "build": "pnpm run clean && concurrently 'pnpm:build-instant' 'pnpm:build-customberg' 'pnpm:build-inline' 'pnpm:build-blocks' 'pnpm:build-blocks-editor' 'pnpm:build:wp-build' && pnpm run build:stamp-textdomains && pnpm run build:boot-asset", "build:boot-asset": "provide-boot-asset-file", "build:stamp-textdomains": "stamp-textdomains", "build:strip-unminified-prod": "strip-unminified-prod", @@ -25,7 +25,6 @@ "build-blocks": "webpack --config ./tools/webpack.blocks.config.js", "build-blocks-editor": "webpack --config ./tools/webpack.blocks-editor.config.js", "build-customberg": "webpack --config ./tools/webpack.customberg.config.js", - "build-dashboard": "webpack --config ./tools/webpack.dashboard.config.js", "build-development": "NODE_ENV=development BABEL_ENV=development pnpm run build", "build-inline": "webpack --config ./tools/webpack.inline.config.js", "build-instant": "webpack --config ./tools/webpack.instant.config.js", @@ -39,7 +38,7 @@ "test-url-tests": "jest --config=jest.url-tests.config.js --passWithNoTests", "typecheck": "tsgo --noEmit", "validate": "pnpm exec validate-es --no-error-on-unmatched-pattern build/", - "watch": "concurrently 'pnpm:build-instant --watch' 'pnpm:build-customberg --watch' 'pnpm:build-dashboard --watch' 'pnpm:watch:wp-build' 'pnpm:build-inline --watch' 'pnpm:build-blocks --watch' 'pnpm:build-blocks-editor --watch'", + "watch": "concurrently 'pnpm:build-instant --watch' 'pnpm:build-customberg --watch' 'pnpm:watch:wp-build' 'pnpm:build-inline --watch' 'pnpm:build-blocks --watch' 'pnpm:build-blocks-editor --watch'", "watch:wp-build": "wp-build --watch" }, "browserslist": [ diff --git a/projects/packages/search/packages/init/src/jetpack-config.ts b/projects/packages/search/packages/init/src/jetpack-config.ts index 54385c8f0cb0..e9715c5bc6f6 100644 --- a/projects/packages/search/packages/init/src/jetpack-config.ts +++ b/projects/packages/search/packages/init/src/jetpack-config.ts @@ -1,5 +1,5 @@ /** - * Provide the `jetpackConfig` that webpack.dashboard.config.js declares as an external, which esbuild cannot. + * Provide the `jetpackConfig` global `@automattic/jetpack-config` reads, which esbuild cannot declare as an external. */ export function provideJetpackConfig(): void { ( globalThis as typeof globalThis & { jetpackConfig?: object } ).jetpackConfig = { diff --git a/projects/packages/search/routes/dashboard/stage.tsx b/projects/packages/search/routes/dashboard/stage.tsx index e41b4142b332..ccae93d130dc 100644 --- a/projects/packages/search/routes/dashboard/stage.tsx +++ b/projects/packages/search/routes/dashboard/stage.tsx @@ -3,15 +3,14 @@ import SearchDashboard from '../../src/dashboard/components/dashboard/wrapped-da import { STORE_ID, storeConfig } from '../../src/dashboard/store'; import './route.scss'; -// Mirrors the module-scope registration in `src/dashboard/index.jsx`: `` -// reads this store via `useSelect()`, so it must exist before boot mounts `stage`. +// `` reads this store via `useSelect()`, so it must exist before boot mounts `stage`. const store = createReduxStore( STORE_ID, storeConfig ); register( store ); /** - * Keeps the `#jp-search-dashboard` wrapper the legacy entry mounted into. `dashboard-page.scss` - * scopes its rules to it, including the `font-size: 16px` every em in the dashboard resolves - * against — without it the tree renders against wp-admin's 13px. + * Renders the `#jp-search-dashboard` wrapper `dashboard-page.scss` scopes its rules to, including + * the `font-size: 16px` every em in the dashboard resolves against — without it the tree renders + * against wp-admin's 13px. * * @return The dashboard, wrapped as the stylesheet expects. */ diff --git a/projects/packages/search/src/dashboard/class-dashboard.php b/projects/packages/search/src/dashboard/class-dashboard.php index a1f315fac8d0..3129ff47b114 100644 --- a/projects/packages/search/src/dashboard/class-dashboard.php +++ b/projects/packages/search/src/dashboard/class-dashboard.php @@ -8,10 +8,8 @@ namespace Automattic\Jetpack\Search; use Automattic\Jetpack\Admin_UI\Admin_Menu; -use Automattic\Jetpack\Assets; use Automattic\Jetpack\Connection\Initial_State as Connection_Initial_State; use Automattic\Jetpack\Connection\Manager as Connection_Manager; -use Automattic\Jetpack\Feature_Flags\Feature_Flags; use Automattic\Jetpack\Status; use Automattic\Jetpack\Tracking; use Automattic\Jetpack\WP_Build_Polyfills\WP_Build_Polyfills; @@ -21,11 +19,6 @@ * @package Automattic\Jetpack\Search */ class Dashboard { - /** - * Feature flag enabling the modernized, wp-build-served dashboard. - */ - const WP_BUILD_FEATURE_FLAG = 'search-wp-build'; - /** * Slug emitted by `@wordpress/build` (`wpPlugin.pages[0].id`). Must differ from the * `jetpack-search` menu slug: the generated page.php takes over, and exits, any request @@ -41,7 +34,7 @@ class Dashboard { const WP_BUILD_RENDER_FN = 'jetpack_search_jetpack_search_dashboard_wp_admin_render_page'; /** - * Classic script handle with no source, registered only so the wp-build path has + * Classic script handle with no source, registered only so the dashboard has * something to hang {@see Initial_State} and the connection initial state on. */ const DATA_SCRIPT_HANDLE = 'jetpack-search-dashboard-data'; @@ -117,8 +110,8 @@ public function __construct( $plan = null, $connection_manager = null, $module_c public function init_hooks() { if ( ! self::$initialized ) { self::$initialized = true; - // Any priority works: the predicate's readers, render() and load_admin_scripts(), - // both run after admin_menu — and the wpcom subclass overrides this to 100000. + // Any priority works: render() reads the loaded build after admin_menu, and the + // wpcom subclass overrides this to 100000. add_action( 'admin_menu', array( $this, 'maybe_load_wp_build' ), $this->search_menu_priority ); add_action( 'admin_menu', array( $this, 'add_wp_admin_submenu' ), $this->search_menu_priority ); // Check if the site plan changed and deactivate module accordingly. @@ -127,13 +120,12 @@ public function init_hooks() { } /** - * Load the wp-build dashboard bundle for this request, when the site opted in. + * Load the wp-build dashboard bundle for this request. * - * A no-op unless the flag is on, this is the Search page, and `build/build.php` - * exists; {@see self::is_wp_build_dashboard_active()} falls back otherwise. + * A no-op unless this is the Search page and `build/build.php` exists. */ public function maybe_load_wp_build() { - if ( ! $this->is_modernized() || ! $this->is_search_admin_request() ) { + if ( ! $this->is_search_admin_request() ) { return; } @@ -161,48 +153,8 @@ public function maybe_load_wp_build() { } /** - * Register the package's feature flags. - * - * Called from {@see Initializer::init()} rather than this class, so the flag stays - * listable by `wp companion feature-flag` on requests that never build the dashboard. - * - * @return void - */ - public static function register_feature_flags() { - Feature_Flags::register( - self::WP_BUILD_FEATURE_FLAG, - array( - 'default' => false, - 'description' => 'Serve the Jetpack Search dashboard through the wp-build pipeline.', - 'owner' => 'jetpack-search', - ) - ); - } - - /** - * Whether the site opted into the modernized dashboard. - * - * @return bool - */ - protected function is_modernized() { - return Feature_Flags::is_enabled( self::WP_BUILD_FEATURE_FLAG ); - } - - /** - * Returns true when the modernization filter is on AND the wp-build dashboard loaded. - * - * Both render() and load_admin_scripts() read this one predicate, so they can never - * disagree about which dashboard is live — see #51436, which broke Backup this way. - * - * @return bool - */ - protected function is_wp_build_dashboard_active() { - return $this->is_modernized() && function_exists( $this->wp_build_render_function() ); - } - - /** - * Name of the generated render function. A seam: tests override it to reach the - * wp-build branch without depending on whether the package happens to be built. + * Name of the generated render function. A seam: tests override it to render + * the dashboard without depending on whether the package happens to be built. * * @return string */ @@ -292,21 +244,15 @@ public function add_wp_admin_submenu() { } /** - * Override render funtion + * Render the dashboard page. * - * Both add_wp_admin_submenu() branches register this same callback, so gating - * the wp-build swap here keeps them from being able to disagree about it. + * The generated render function is missing where the package was never built. */ public function render() { - if ( $this->is_wp_build_dashboard_active() ) { - call_user_func( $this->wp_build_render_function() ); - return; + $render_function = $this->wp_build_render_function(); + if ( function_exists( $render_function ) ) { + call_user_func( $render_function ); } - ?> - - is_wp_build_dashboard_active() ) { - // wp-build enqueues the app itself; this empty handle exists only to - // print the initial state before boot runs on DOMContentLoaded. - wp_register_script( self::DATA_SCRIPT_HANDLE, false, array(), Package::VERSION, true ); - wp_enqueue_script( self::DATA_SCRIPT_HANDLE ); - - // The i18n loader is registered on every admin page but only enqueued - // when depended on; the esbuild bundle doesn't pull it in. - if ( wp_script_is( 'wp-jp-i18n-loader', 'registered' ) ) { - wp_enqueue_script( 'wp-jp-i18n-loader' ); - } - - $data_handle = self::DATA_SCRIPT_HANDLE; - } else { - Assets::register_script( - 'jp-search-dashboard', - '../../build/dashboard/jp-search-dashboard.js', - __FILE__, - array( - 'in_footer' => true, - 'textdomain' => 'jetpack-search-pkg', - ) - ); - Assets::enqueue_script( 'jp-search-dashboard' ); + // wp-build enqueues the app itself; this empty handle exists only to + // print the initial state before boot runs on DOMContentLoaded. + wp_register_script( self::DATA_SCRIPT_HANDLE, false, array(), Package::VERSION, true ); + wp_enqueue_script( self::DATA_SCRIPT_HANDLE ); - $data_handle = 'jp-search-dashboard'; + // The i18n loader is registered on every admin page but only enqueued + // when depended on; the esbuild bundle doesn't pull it in. + if ( wp_script_is( 'wp-jp-i18n-loader', 'registered' ) ) { + wp_enqueue_script( 'wp-jp-i18n-loader' ); } // Add objects to be passed to the initial state of the app. // Use wp_add_inline_script instead of wp_localize_script, see https://core.trac.wordpress.org/ticket/25280. wp_add_inline_script( - $data_handle, + self::DATA_SCRIPT_HANDLE, ( new Initial_State() )->render(), 'before' ); // Connection initial state. - Connection_Initial_State::render_script( $data_handle ); + Connection_Initial_State::render_script( self::DATA_SCRIPT_HANDLE ); } /** diff --git a/projects/packages/search/src/dashboard/index.jsx b/projects/packages/search/src/dashboard/index.jsx deleted file mode 100644 index fbf2ad92b4bc..000000000000 --- a/projects/packages/search/src/dashboard/index.jsx +++ /dev/null @@ -1,28 +0,0 @@ -import { createReduxStore, register } from '@wordpress/data'; -import * as WPElement from '@wordpress/element'; -import SearchDashboard from './components/dashboard/wrapped-dashboard'; -import { STORE_ID, storeConfig } from './store'; -import './scss/admin-layout.scss'; - -const store = createReduxStore( STORE_ID, storeConfig ); -register( store ); - -/** - * Mounts the Search Dashboard to #jp-search-dashboard if available. - */ -function init() { - const container = document.getElementById( 'jp-search-dashboard' ); - - if ( container === null ) { - return; - } - - WPElement.createRoot( container ).render( ); -} - -// Initialize the dashboard when DOMContentLoaded is fired, or immediately if it already has been. -if ( document.readyState !== 'loading' ) { - init(); -} else { - document.addEventListener( 'DOMContentLoaded', init ); -} diff --git a/projects/packages/search/src/dashboard/scss/admin-layout.scss b/projects/packages/search/src/dashboard/scss/admin-layout.scss deleted file mode 100644 index a4ed52cb2c7a..000000000000 --- a/projects/packages/search/src/dashboard/scss/admin-layout.scss +++ /dev/null @@ -1,6 +0,0 @@ -@use "@automattic/jetpack-base-styles/admin-page-layout" as *; - -body.jetpack_page_jetpack-search { - - @include jetpack-admin-page-layout; -} diff --git a/projects/packages/search/src/initializers/class-initializer.php b/projects/packages/search/src/initializers/class-initializer.php index ec24bdc496f8..25ff05f8a4fe 100644 --- a/projects/packages/search/src/initializers/class-initializer.php +++ b/projects/packages/search/src/initializers/class-initializer.php @@ -37,10 +37,6 @@ class Initializer { * The method is called from the `Config` class. */ public static function init() { - // Ahead of the abort filter below, so the flag stays listable by - // `wp companion feature-flag` even where Search initialization bails. - Dashboard::register_feature_flags(); - // Load compatibility files - at this point all plugins are already loaded. static::include_compatibility_files(); diff --git a/projects/packages/search/tests/php/Dashboard_Wp_Build_Fallback_Test.php b/projects/packages/search/tests/php/Dashboard_Wp_Build_Fallback_Test.php deleted file mode 100644 index 6c705a196d01..000000000000 --- a/projects/packages/search/tests/php/Dashboard_Wp_Build_Fallback_Test.php +++ /dev/null @@ -1,192 +0,0 @@ -setAccessible( true ); - } - - return $method->invoke( $dashboard ); - } - - /** - * A Dashboard whose render-function seam points at the fixture, so the wp-build - * branch is reachable without building the package. - * - * @return Dashboard - */ - private function dashboard_with_build() { - return new class() extends Dashboard { - /** - * @return string - */ - protected function wp_build_render_function() { - return 'Automattic\\Jetpack\\Search\\Fixtures\\wp_build_render_page'; - } - }; - } - - public function test_predicate_is_false_when_the_flag_is_off() { - $this->assertFalse( $this->is_wp_build_dashboard_active( new Dashboard() ) ); - } - - public function test_predicate_stays_false_when_the_flag_is_on_but_the_build_is_absent() { - add_filter( self::FLAG_FILTER, '__return_true' ); - - // Nothing here loads build/build.php, so the generated render function is undefined. - $this->assertFalse( $this->is_wp_build_dashboard_active( new Dashboard() ) ); - } - - public function test_render_falls_back_to_the_legacy_markup_when_the_flag_is_off() { - ob_start(); - ( new Dashboard() )->render(); - $output = ob_get_clean(); - - $this->assertStringContainsString( 'id="jp-search-dashboard"', $output ); - } - - public function test_render_falls_back_to_the_legacy_markup_when_the_build_is_not_loaded() { - add_filter( self::FLAG_FILTER, '__return_true' ); - - ob_start(); - ( new Dashboard() )->render(); - $output = ob_get_clean(); - - $this->assertStringContainsString( 'id="jp-search-dashboard"', $output ); - } - - public function test_load_admin_scripts_registers_the_legacy_script_when_the_flag_is_off() { - ( new Dashboard() )->load_admin_scripts(); - - $this->assertTrue( wp_script_is( 'jp-search-dashboard', 'registered' ) ); - $this->assertFalse( wp_script_is( Dashboard::DATA_SCRIPT_HANDLE, 'registered' ) ); - } - - public function test_load_admin_scripts_registers_the_legacy_script_when_the_build_is_not_loaded() { - add_filter( self::FLAG_FILTER, '__return_true' ); - - ( new Dashboard() )->load_admin_scripts(); - - $this->assertTrue( wp_script_is( 'jp-search-dashboard', 'registered' ) ); - $this->assertFalse( wp_script_is( Dashboard::DATA_SCRIPT_HANDLE, 'registered' ) ); - } - - public function test_render_calls_the_generated_function_when_the_build_is_present() { - add_filter( self::FLAG_FILTER, '__return_true' ); - - ob_start(); - $this->dashboard_with_build()->render(); - $output = ob_get_clean(); - - $this->assertStringContainsString( 'id="jetpack-search-dashboard-wp-admin-app"', $output ); - $this->assertStringNotContainsString( 'id="jp-search-dashboard"', $output ); - } - - public function test_render_stays_legacy_with_a_build_present_but_the_flag_off() { - ob_start(); - $this->dashboard_with_build()->render(); - $output = ob_get_clean(); - - $this->assertStringContainsString( 'id="jp-search-dashboard"', $output ); - } - - public function test_load_admin_scripts_swaps_the_data_handle_when_the_build_is_present() { - add_filter( self::FLAG_FILTER, '__return_true' ); - - $this->dashboard_with_build()->load_admin_scripts(); - - $this->assertTrue( wp_script_is( Dashboard::DATA_SCRIPT_HANDLE, 'registered' ) ); - $this->assertFalse( wp_script_is( 'jp-search-dashboard', 'registered' ) ); - } - - public function test_initial_state_rides_the_data_handle_on_the_wp_build_path() { - add_filter( self::FLAG_FILTER, '__return_true' ); - - $this->dashboard_with_build()->load_admin_scripts(); - - $inline = implode( "\n", array_filter( (array) wp_scripts()->get_data( Dashboard::DATA_SCRIPT_HANDLE, 'before' ) ) ); - $this->assertStringContainsString( 'JP_CONNECTION_INITIAL_STATE', $inline ); - } - - public function test_the_constants_match_the_wp_build_page_definition() { - $package_json = (array) json_decode( (string) file_get_contents( dirname( __DIR__, 2 ) . '/package.json' ), true ); - $wp_plugin = (array) $package_json['wpPlugin']; - $page = (array) $wp_plugin['pages'][0]; - - $this->assertSame( Dashboard::WP_BUILD_PAGE_ID, $page['id'] ); - $this->assertSame( - Dashboard::WP_BUILD_RENDER_FN, - $wp_plugin['name'] . '_' . str_replace( '-', '_', (string) $page['id'] ) . '_wp_admin_render_page', - 'A page-id or wpPlugin.name change renamed the generated function; every flag-on site would silently get the legacy dashboard.' - ); - } - - public function test_the_constant_matches_the_name_the_generator_emitted() { - $generated = dirname( __DIR__, 2 ) . '/build/pages/jetpack-search-dashboard/page-wp-admin.php'; - if ( ! file_exists( $generated ) ) { - $this->markTestSkipped( 'Package is not built; the generated file is only present after a build.' ); - } - - $this->assertStringContainsString( - 'function ' . Dashboard::WP_BUILD_RENDER_FN . '(', - (string) file_get_contents( $generated ) - ); - } -} diff --git a/projects/packages/search/tests/php/Dashboard_Wp_Build_Test.php b/projects/packages/search/tests/php/Dashboard_Wp_Build_Test.php new file mode 100644 index 000000000000..0aa27876f59f --- /dev/null +++ b/projects/packages/search/tests/php/Dashboard_Wp_Build_Test.php @@ -0,0 +1,104 @@ +dashboard_with_build()->render(); + $output = ob_get_clean(); + + $this->assertStringContainsString( 'id="jetpack-search-dashboard-wp-admin-app"', $output ); + } + + public function test_render_prints_nothing_when_the_build_is_not_loaded() { + // Nothing here loads build/build.php, so the generated render function is undefined. + ob_start(); + ( new Dashboard() )->render(); + $output = ob_get_clean(); + + $this->assertSame( '', $output ); + } + + public function test_load_admin_scripts_enqueues_the_data_handle() { + ( new Dashboard() )->load_admin_scripts(); + + $this->assertTrue( wp_script_is( Dashboard::DATA_SCRIPT_HANDLE, 'enqueued' ) ); + } + + public function test_initial_state_rides_the_data_handle() { + ( new Dashboard() )->load_admin_scripts(); + + $inline = implode( "\n", array_filter( (array) wp_scripts()->get_data( Dashboard::DATA_SCRIPT_HANDLE, 'before' ) ) ); + $this->assertStringContainsString( 'JP_CONNECTION_INITIAL_STATE', $inline ); + } + + public function test_the_constants_match_the_wp_build_page_definition() { + $package_json = (array) json_decode( (string) file_get_contents( dirname( __DIR__, 2 ) . '/package.json' ), true ); + $wp_plugin = (array) $package_json['wpPlugin']; + $page = (array) $wp_plugin['pages'][0]; + + $this->assertSame( Dashboard::WP_BUILD_PAGE_ID, $page['id'] ); + $this->assertSame( + Dashboard::WP_BUILD_RENDER_FN, + $wp_plugin['name'] . '_' . str_replace( '-', '_', (string) $page['id'] ) . '_wp_admin_render_page', + 'A page-id or wpPlugin.name change renamed the generated function; the Search page would silently render blank.' + ); + } + + public function test_the_constant_matches_the_name_the_generator_emitted() { + $generated = dirname( __DIR__, 2 ) . '/build/pages/jetpack-search-dashboard/page-wp-admin.php'; + if ( ! file_exists( $generated ) ) { + $this->markTestSkipped( 'Package is not built; the generated file is only present after a build.' ); + } + + $this->assertStringContainsString( + 'function ' . Dashboard::WP_BUILD_RENDER_FN . '(', + (string) file_get_contents( $generated ) + ); + } +} diff --git a/projects/packages/search/tests/php/fixtures/wp-build-render.php b/projects/packages/search/tests/php/fixtures/wp-build-render.php index b9553ac3f622..a6a2da00d102 100644 --- a/projects/packages/search/tests/php/fixtures/wp-build-render.php +++ b/projects/packages/search/tests/php/fixtures/wp-build-render.php @@ -1,7 +1,7 @@ Date: Fri, 18 Sep 2026 17:11:10 -0300 Subject: [PATCH 2/3] Changelog Co-Authored-By: Claude Opus 5 (1M context) --- .../search/changelog/update-search-retire-wp-build-flag | 4 ++++ .../jetpack/changelog/update-search-retire-wp-build-flag | 4 ++++ .../search/changelog/update-search-retire-wp-build-flag | 4 ++++ 3 files changed, 12 insertions(+) create mode 100644 projects/packages/search/changelog/update-search-retire-wp-build-flag create mode 100644 projects/plugins/jetpack/changelog/update-search-retire-wp-build-flag create mode 100644 projects/plugins/search/changelog/update-search-retire-wp-build-flag diff --git a/projects/packages/search/changelog/update-search-retire-wp-build-flag b/projects/packages/search/changelog/update-search-retire-wp-build-flag new file mode 100644 index 000000000000..e575bac78b6e --- /dev/null +++ b/projects/packages/search/changelog/update-search-retire-wp-build-flag @@ -0,0 +1,4 @@ +Significance: minor +Type: changed + +Show the dashboard in the new rounded admin page frame on every site. diff --git a/projects/plugins/jetpack/changelog/update-search-retire-wp-build-flag b/projects/plugins/jetpack/changelog/update-search-retire-wp-build-flag new file mode 100644 index 000000000000..02d118f21256 --- /dev/null +++ b/projects/plugins/jetpack/changelog/update-search-retire-wp-build-flag @@ -0,0 +1,4 @@ +Significance: minor +Type: enhancement + +Search: Show the dashboard in the new rounded admin page frame. diff --git a/projects/plugins/search/changelog/update-search-retire-wp-build-flag b/projects/plugins/search/changelog/update-search-retire-wp-build-flag new file mode 100644 index 000000000000..f554f9a2a8fe --- /dev/null +++ b/projects/plugins/search/changelog/update-search-retire-wp-build-flag @@ -0,0 +1,4 @@ +Significance: minor +Type: changed + +Show the dashboard in the new rounded admin page frame. From 3f133230b6a93c001e11d6d218e4ba12dcfca1c4 Mon Sep 17 00:00:00 2001 From: Douglas Date: Mon, 21 Sep 2026 11:06:48 -0300 Subject: [PATCH 3/3] Changelog: drop the flag-era tail from the package entry Nothing released described the dashboard without the frame, so "on every site" pointed at a state no reader saw. Co-Authored-By: Claude Opus 5 (1M context) --- .../search/changelog/update-search-retire-wp-build-flag | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/packages/search/changelog/update-search-retire-wp-build-flag b/projects/packages/search/changelog/update-search-retire-wp-build-flag index e575bac78b6e..f554f9a2a8fe 100644 --- a/projects/packages/search/changelog/update-search-retire-wp-build-flag +++ b/projects/packages/search/changelog/update-search-retire-wp-build-flag @@ -1,4 +1,4 @@ Significance: minor Type: changed -Show the dashboard in the new rounded admin page frame on every site. +Show the dashboard in the new rounded admin page frame.