-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Themes: Drop sites-list usage (take two) #12124
Conversation
6293a3c
to
c68c43b
Compare
c68c43b
to
deefa68
Compare
9a8b9bd
to
5cd2af4
Compare
5cd2af4
to
8b49f37
Compare
@@ -38,7 +38,6 @@ JetpackSite.prototype.updateComputedAttributes = function() { | |||
this.canUpdateFiles = SiteUtils.canUpdateFiles( this ); | |||
this.canAutoupdateFiles = SiteUtils.canAutoupdateFiles( this ); | |||
this.hasJetpackMenus = versionCompare( this.options.jetpack_version, '3.5-alpha' ) >= 0; | |||
this.hasJetpackThemes = versionCompare( this.options.jetpack_version, '3.7-beta' ) >= 0; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is obsolete, site.hasJetpackThemes
isn't used anywhere anymore. (Try grepping for hasJetpackThemes
.)
isJetpack: isJetpackSite( state, selectedSiteId ), | ||
isCustomizable: canCurrentUser( state, selectedSiteId, 'edit_theme_options' ), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is obsolete -- try grepping for isCustomizable
.
filter, | ||
vertical | ||
vertical, | ||
wpcomTier | ||
} = props; | ||
const jetpackEnabled = config.isEnabled( 'manage/themes-jetpack' ); | ||
|
||
if ( ! jetpackEnabled ) { | ||
return ( | ||
<JetpackReferrerMessage |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We'll be able to drop this component altogether once we drop the (now obsolete) manage/themes-jetpack
feature flag.
Tested on Chrome:
I didn't test: mange disabled (how?), outdated version, multi-site install. Aside: the order of the ••• menu items between Jetpack and .com sites is different, we should fix that in a later PR. |
Tested those myself. Will merge now. |
This affects only single-site mode, and mostly Jetpack error/warning messages (JP upgrade needed/JP Manage disabled/etc) there.
To test:
wp-admin
theme showcase) forOpen WP Admin
button points correctly towp-admin
.Deprecates #8776, which was quite outdated.
(We're still passing around a bunch of props rather needlessly or at least inelegantly, but I'll leave those for a future PR.)