From 2d4311e32efed2226b7b2ff55d58c249ba38066f Mon Sep 17 00:00:00 2001 From: Dominik Schilling Date: Mon, 14 May 2018 15:55:21 +0000 Subject: [PATCH] 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 --- wp-admin/includes/misc.php | 4 +--- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/wp-admin/includes/misc.php b/wp-admin/includes/misc.php index b44c374ea6..1ded532ffd 100644 --- a/wp-admin/includes/misc.php +++ b/wp-admin/includes/misc.php @@ -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 { } ?> -
+

diff --git a/wp-includes/version.php b/wp-includes/version.php index ab6148ffd4..7a9ebe7b4d 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @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.