Privacy: Remove is-dismissible
class from notice when privacy info has changed.
The notice isn't dismissible as it only gets removed once you visit the privacy guide, see #44057 and #44063. Fixes #44065. git-svn-id: https://develop.svn.wordpress.org/trunk@43261 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
2865e6f324
commit
8288241045
@ -1389,8 +1389,6 @@ final class WP_Privacy_Policy_Content {
|
||||
* @since 4.9.6
|
||||
*/
|
||||
public static function policy_text_changed_notice() {
|
||||
global $post;
|
||||
|
||||
$screen = get_current_screen()->id;
|
||||
|
||||
if ( 'privacy' !== $screen ) {
|
||||
@ -1398,7 +1396,7 @@ final class WP_Privacy_Policy_Content {
|
||||
}
|
||||
|
||||
?>
|
||||
<div class="policy-text-updated notice notice-warning is-dismissible">
|
||||
<div class="policy-text-updated notice notice-warning">
|
||||
<p><?php
|
||||
_e( 'The suggested privacy policy text has changed. Please update your privacy policy.' );
|
||||
?></p>
|
||||
|
Loading…
Reference in New Issue
Block a user