Skip to content

Commit

Permalink
Revert "Themes: Include delisted when searching (#94846)" (#96801)
Browse files Browse the repository at this point in the history
This reverts commit c272015.
  • Loading branch information
taipeicoder authored Nov 27, 2024
1 parent ccd3d76 commit b7d4017
Showing 1 changed file with 5 additions and 13 deletions.
18 changes: 5 additions & 13 deletions client/state/themes/actions/request-themes.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Expand Down

0 comments on commit b7d4017

Please sign in to comment.