-
Notifications
You must be signed in to change notification settings - Fork 384
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
Add option to keep AMP data upon uninstalling of plugin #6632
Conversation
Plugin builds for c28a210 are ready 🛎️!
|
Codecov Report
@@ Coverage Diff @@
## develop #6632 +/- ##
=============================================
+ Coverage 76.60% 76.62% +0.01%
- Complexity 6311 6312 +1
=============================================
Files 248 248
Lines 19788 19799 +11
=============================================
+ Hits 15159 15170 +11
Misses 4629 4629
Flags with carried forward coverage won't be shown. Click here to find out more.
|
includes/uninstall-functions.php
Outdated
delete_posts(); | ||
delete_terms(); | ||
delete_transients(); | ||
$keep_amp_data = \AMP_Options_Manager::get_option( Option::KEEP_AMP_DATA ); |
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.
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.
Frontend-wise the code looks good to me.
@@ -1,7 +1,7 @@ | |||
<?php | |||
/** | |||
* Plugin Name: AMP | |||
* Description: An easier path to great Page Experience for everyone. Powered by AMP. | |||
* Description: An easier path to great Page Experience for everyone. Powered by AMP. <em class="amp-deletion-notice"><strong>Uninstall Note:</strong> To control whether all data from this plugin is deleted at uninstallation, first activate the plugin, go to the Other section on the Settings screen, and set the “Delete plugin data at uninstall” toggle.</em> |
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.
Wondering if the install note should be on a separate line for better visibility 🤔
* Description: An easier path to great Page Experience for everyone. Powered by AMP. <em class="amp-deletion-notice"><strong>Uninstall Note:</strong> To control whether all data from this plugin is deleted at uninstallation, first activate the plugin, go to the Other section on the Settings screen, and set the “Delete plugin data at uninstall” toggle.</em> | |
* Description: An easier path to great Page Experience for everyone. Powered by AMP. <br><em class="amp-deletion-notice"><strong>Uninstall Note:</strong> To control whether all data from this plugin is deleted at uninstallation, first activate the plugin, go to the Other section on the Settings screen, and set the “Delete plugin data at uninstall” toggle.</em> |
Before | After |
---|---|
![]() |
![]() |
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.
Ideally, yes. Unfortunately, the br
tag is not allowed. Only abbr
, acronym
, code
, em
, strong
, and a
are allowed: https://github.com/WordPress/wordpress-develop/blob/ed9f437fc098ba2c9ba18eda0fa341ecd0476ca9/src/wp-admin/includes/plugin.php#L173-L186
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.
Oh I see, unfortunate indeed.
Co-authored-by: Pierre Gordon <[email protected]>
Summary
Fixes #6486
Checklist