From b7d401738e5dc7fbb29c8cae0ea9f65fce12edb1 Mon Sep 17 00:00:00 2001 From: Griffith Chen Date: Wed, 27 Nov 2024 08:15:04 +0800 Subject: [PATCH] Revert "Themes: Include delisted when searching (#94846)" (#96801) This reverts commit c2720153d4bac3e5ed17447ae84388f905594b0e. --- client/state/themes/actions/request-themes.js | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/client/state/themes/actions/request-themes.js b/client/state/themes/actions/request-themes.js index 9fe828763dc8f..c40c67abd174b 100644 --- a/client/state/themes/actions/request-themes.js +++ b/client/state/themes/actions/request-themes.js @@ -57,19 +57,11 @@ export function requestThemes( siteId, query = {}, locale ) { // https://github.com/Automattic/wp-calypso/issues/71911#issuecomment-1381284172 // User can be redirected to PatternAssembler flow using the PatternAssemblerCTA on theme-list include_blankcanvas_theme: null, - ...( query.search && !! query.search.length - ? { - // Include retired themes when searching. This is useful when a theme exists in both wpcom and wporg. - // The theme will show up in the theme listing as wporg, but it cannot be activated - // since it's a retired wpcom theme (take precedence). - // See: https://github.com/Automattic/wp-calypso/pull/78231 - retired: true, - // Include delisted themes when searching. This solves an issue where some themes - // are mistakenly displayed as 3rd-party themes requiring an upgrade. - // See: https://github.com/Automattic/wp-calypso/issues/94310#issuecomment-2370899172 - delisted: true, - } - : null ), + // Include retired themes when searching. This is useful when a theme exists in both wpcom and wporg. + // The theme will show up in the theme listing as wporg, but it cannot be activated + // since it's a retired wpcom theme (take precedence). + // See: https://github.com/Automattic/wp-calypso/pull/78231 + ...( query.search && !! query.search.length ? { retired: true } : null ), }, locale ? { locale } : null )