Skip to content
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: Install AT themes without -wpcom suffix #11608

Merged
merged 1 commit into from
Feb 27, 2017

Conversation

seear
Copy link
Contributor

@seear seear commented Feb 27, 2017

Fixes theme activation and customization for AT sites.

AT sites no longer use -wpcom suffixes for wpcom themes. The intended plan for Calypso was to still supply a suffix to the install endpoint for AT sites (to avoid an AT special case), but the Jetpack install endpoint has problems returning a different (non-suffixed) theme id to the one that was supplied.

This change would require a modification to the wpcomsh plugin to not expect suffixed theme IDs.

This is an alternative to the workaround in #11535

/cc @lamosty

AT sites no longer use -wpcom suffixes for wpcom themes. The intended
plan was to still supply a suffix to the install endpoint for AT sites,
but the Jetpack install endpoint has problems returning a different
(non-suffixed) theme id to the one that was supplied.

This change would require a modification to the wpcomsh plugin
to not expect suffixed theme IDs.
@seear seear added [Feature Group] Appearance & Themes Features related to the appearance of sites. [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. [Type] Question labels Feb 27, 2017
@seear seear self-assigned this Feb 27, 2017
@seear seear requested a review from ockham February 27, 2017 13:15
@matticbot
Copy link
Contributor

@matticbot matticbot added the [Size] S Small sized issue label Feb 27, 2017
Copy link
Contributor

@ockham ockham left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As discussed on Slack, let's go with this 👍
(Tested with a regular JP site, still working.)

Maybe we can find a way to keep the Calypso Theme Showcase AT-agnostic and handle this at JP level later.

@ockham
Copy link
Contributor

ockham commented Feb 27, 2017

BTW, would be nice to cover this with a test (but unfortunately, I'm afraid we don't have the means to yet.)

@seear seear merged commit 62476a8 into master Feb 27, 2017
@seear seear deleted the try/themes-at-install-no-suffix branch February 27, 2017 20:46
@matticbot matticbot removed the [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. label Feb 27, 2017
seear added a commit that referenced this pull request Feb 27, 2017
Apply install fix from #11608 to try&customize action now that
Automated Transfer sites do not need the -wpcom suffix on theme
IDs when installing themes.
seear added a commit that referenced this pull request Feb 28, 2017
Apply install fix from #11608 to try&customize action now that Automated Transfer sites do not need the -wpcom suffix on theme IDs when installing themes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature Group] Appearance & Themes Features related to the appearance of sites. [Size] S Small sized issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants