-
Notifications
You must be signed in to change notification settings - Fork 800
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
Mobile Theme: remove feature #14714
Mobile Theme: remove feature #14714
Conversation
We don't need a module description nor options for the module anymore.
We don't need them anymore, let's clean up behind ourselves
- Add comment explaining the reasons behind sunsetting. - Deactivate the module if it is still active. - Output error when module file is called directly. - Mark functions that may be used by external plugins as deprecated.
@@ -96,9 +96,7 @@ function js_templates() { | |||
<# var i = 0; | |||
if ( data.items.length ) { | |||
_.each( data.items, function( item, key, list ) { | |||
if ( item === undefined ) return; | |||
if ( 'minileven' == item.module && ! item.activated ) return; | |||
if ( 'manage' == item.module && item.activated ) return; #> |
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.
I took the opportunity to delete this reference to the Manage module.
Thank you for the great PR description! When this PR is ready for review, please apply the Scheduled Jetpack release: March 3, 2020. |
Reads well. Going to spin up a JN to poke around a bit. |
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.
Yup, that's next on my list, and will be gone for anyone running Jetpack 8.3+. |
This is a follow-up to #14714. After removing those options, we started seeing errors like this one on sites: PHP Warning: Invalid Jetpack option name: wp_mobile_excerpt Since these Jetpack options are still valid options even if the feature is gone, let's keep them around.
* Minileven: add options back as they still exist on sites This is a follow-up to #14714. After removing those options, we started seeing errors like this one on sites: PHP Warning: Invalid Jetpack option name: wp_mobile_excerpt Since these Jetpack options are still valid options even if the feature is gone, let's keep them around. * Those options are not stored as Jetpack options. See #14756 (comment) * Remove unneeded options See https://github.com/Automattic/jetpack/pull/14756/files#r383413182 * Only delete options if the standalone plugin is not in use
* 8.3 release: changelog * Changelog: add #14516 * Changelog: add #14574 * Bring in changes from 8.2.1 and 8.2.2 * Update stable version * Bring in 8.2.3 changes * Changelog: add #14714 * Changelog: add #14639 * Changelog: add #14678 * Changelog: add #14673 * Changelog: add #14687 * Changelog: add #14704 * Changelog: add #14702 * Changelog: add #14541 * Changelog: add #14657 * Changelog: add #14622 * Changelog: add #14582 * Changelog: add #14638 * Changelog: add #14633 * Changelog: add #14571 * Changelog: add #14592 * Changelog: add #14539 * Changelog: add #14514 * Changelog: add #14643 * Changelog: add #14494 * Changelog: add #13739 * Changelog: add #14707 * Changelog: add #14736 * Changelog: add #14706 * Changelog: add #14730 * Changelog: add #14685 * Changelog: add #14727 * Changelog: add #14711 * Changelog: add #14742 * Changelog: add #14746 * Changelog: add #14725 * Changelog: add #13999 * Changelog: add #14740 * Changelog: add #14759 * Changelog: add #14703 * Changelog: add #14753 * Changelog: add #14754 * Changelog: add #14645 * Cahngelog: add #14599
Fixes #13385
Closes #6616
Closes #5815
Closes #6617
Closes #10685
Closes #2061
Changes proposed in this Pull Request:
It is time.
We originally created the mobile theme feature as a fall-back when the regular theme did not include a mobile view. Most themes include a mobile view by default now, so the feature is no longer necessary.
This PR is the last step in deprecating the Mobile Theme feature. In #14101 (as well as messages in the dashboard and emails), we started warning folks that the feature was going away. In this PR, we remove the feature entirely:
Is this a new feature or does it add/remove features to an existing part of Jetpack?
Testing instructions:
wp jetpack module activate minileven
to activate the Mobile Theme.Proposed changelog entry for your changes: