mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-11 19:02:23 +01:00
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. Built from https://develop.svn.wordpress.org/trunk@43261 git-svn-id: http://core.svn.wordpress.org/trunk@43090 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
d3b3cc3fa5
commit
2d4311e32e
@ -1389,8 +1389,6 @@ final class WP_Privacy_Policy_Content {
|
|||||||
* @since 4.9.6
|
* @since 4.9.6
|
||||||
*/
|
*/
|
||||||
public static function policy_text_changed_notice() {
|
public static function policy_text_changed_notice() {
|
||||||
global $post;
|
|
||||||
|
|
||||||
$screen = get_current_screen()->id;
|
$screen = get_current_screen()->id;
|
||||||
|
|
||||||
if ( 'privacy' !== $screen ) {
|
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
|
<p><?php
|
||||||
_e( 'The suggested privacy policy text has changed. Please update your privacy policy.' );
|
_e( 'The suggested privacy policy text has changed. Please update your privacy policy.' );
|
||||||
?></p>
|
?></p>
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '5.0-alpha-43259';
|
$wp_version = '5.0-alpha-43261';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user