diff --git a/client/my-sites/themes/themes-selection.jsx b/client/my-sites/themes/themes-selection.jsx index 86127edb975e..ee35277f3931 100644 --- a/client/my-sites/themes/themes-selection.jsx +++ b/client/my-sites/themes/themes-selection.jsx @@ -1,7 +1,4 @@ -import { - FEATURE_INSTALL_THEMES, - WPCOM_FEATURES_PREMIUM_THEMES_UNLIMITED, -} from '@automattic/calypso-products'; +import { FEATURE_INSTALL_THEMES } from '@automattic/calypso-products'; import pageRouter from '@automattic/calypso-router'; import { compact } from 'lodash'; import PropTypes from 'prop-types'; @@ -13,7 +10,6 @@ import ThemesList from 'calypso/components/themes-list'; import { getThemeShowcaseEventRecorder } from 'calypso/my-sites/themes/events/theme-showcase-tracks'; import { recordGoogleEvent, recordTracksEvent } from 'calypso/state/analytics/actions'; import { isUserLoggedIn } from 'calypso/state/current-user/selectors'; -import isSiteAutomatedTransfer from 'calypso/state/selectors/is-site-automated-transfer'; import siteHasFeature from 'calypso/state/selectors/site-has-feature'; import { getSiteSlug } from 'calypso/state/sites/selectors'; import { setThemePreviewOptions } from 'calypso/state/themes/actions'; @@ -325,14 +321,8 @@ export const ConnectedThemesSelection = connect( state, { filter, page, search, tier, vertical, siteId, source, forceWpOrgSearch, tabFilter } ) => { - const isAtomic = isSiteAutomatedTransfer( state, siteId ); const premiumThemesEnabled = arePremiumThemesEnabled( state, siteId ); const hiddenFilters = getThemeHiddenFilters( state, siteId, tabFilter ); - const hasUnlimitedPremiumThemes = siteHasFeature( - state, - siteId, - WPCOM_FEATURES_PREMIUM_THEMES_UNLIMITED - ); const canInstallThemes = siteHasFeature( state, siteId, FEATURE_INSTALL_THEMES ); let sourceSiteId; @@ -342,10 +332,6 @@ export const ConnectedThemesSelection = connect( sourceSiteId = siteId ? siteId : 'wpcom'; } - if ( isAtomic && ! hasUnlimitedPremiumThemes ) { - sourceSiteId = 'wpcom'; - } - // number calculation is just a hack for Jetpack sites. Jetpack themes endpoint does not paginate the // results and sends all of the themes at once. QueryManager is not expecting such behaviour // and we ended up loosing all of the themes above number 20. Real solution will be pagination on