You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merge branch 'develop' of github.com:ampproject/amp-wp into add/sandboxing-levels
* 'develop' of github.com:ampproject/amp-wp: (41 commits)
Bump eslint-plugin-jsdoc from 36.1.0 to 36.1.1
Bump lint-staged from 11.1.2 to 11.2.3
Use assertContains for array
Use DependencyInjectedTestCase
Add test assertions
Update comments
Update unit test cases
Remove unwanted style, Fix notice style in mobile
Revert some changes and update unit test case
Bump @babel/core from 7.15.5 to 7.15.8
Fix grammar in comment
Bump css-minimizer-webpack-plugin from 3.0.2 to 3.1.1
Apply suggestions from code review
Remove changes from .github
Bump postcss from 8.3.8 to 8.3.9
Remove template change notice from other pages
Remove template change notice from other pages
Add unit test case
Add data removal notice to plugin description
Update unit test case
...
Copy file name to clipboardexpand all lines: amp.php
+1-1
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
<?php
2
2
/**
3
3
* Plugin Name: AMP
4
-
* Description: An easier path to great Page Experience for everyone. Powered by AMP.
4
+
* 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>
{__('When you uninstall the plugin you have the choice of whether its data should also be deleted. Examples of plugin data include the settings, validated URLs, and transients used to store image dimensions and parsed stylesheets.','amp')}
add_action( 'plugins_loaded', '_amp_bootstrap_customizer', 9 ); // Should be hooked before priority 10 on 'plugins_loaded' to properly unhook core panels.
101
+
102
+
// @todo Eliminate this once https://core.trac.wordpress.org/ticket/20578 has finally landed.
Copy file name to clipboardexpand all lines: includes/uninstall-functions.php
+13-6
Original file line number
Diff line number
Diff line change
@@ -175,7 +175,7 @@ function delete_transients() {
175
175
176
176
// phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching -- Cannot cache result since we're deleting the records.
177
177
$wpdb->query(
178
-
// phpcs:ignore WordPress.DB.PreparedSQL.NotPrepared -- See use of prepare in foreach loop above.
178
+
// phpcs:ignore WordPress.DB.PreparedSQL.NotPrepared -- See use of prepare in foreach loop above.
179
179
"DELETE FROM $wpdb->options WHERE " . implode( ' OR ', $where_clause )
180
180
);
181
181
}
@@ -187,10 +187,17 @@ function delete_transients() {
0 commit comments