From e0ea7a4cf796044358a56969f54a422589583329 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 19 Jan 2026 17:03:13 +0000 Subject: [PATCH] Administration: Only warn about a Privacy Policy page collision when the page is set. Follow-up to [45766]. Props safedawn, OctoTooT, rollybueno, sabernhardt, SirLouen, dd32, SergeyBiryukov. Fixes #60750. Built from https://develop.svn.wordpress.org/trunk@61498 git-svn-id: http://core.svn.wordpress.org/trunk@60809 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/options-reading.php | 12 ++++++++++-- wp-includes/version.php | 2 +- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/wp-admin/options-reading.php b/wp-admin/options-reading.php index 5a8ad87ef7..d08abc108d 100644 --- a/wp-admin/options-reading.php +++ b/wp-admin/options-reading.php @@ -142,7 +142,9 @@ else : Warning: these pages should not be the same!' ), array( @@ -152,7 +154,13 @@ else : ) ); endif; - if ( get_option( 'wp_page_for_privacy_policy' ) === get_option( 'page_for_posts' ) || get_option( 'wp_page_for_privacy_policy' ) === get_option( 'page_on_front' ) ) : + + $privacy_policy_page = get_option( 'wp_page_for_privacy_policy' ); + + if ( $privacy_policy_page + && ( get_option( 'page_for_posts' ) === $privacy_policy_page + || get_option( 'page_on_front' ) === $privacy_policy_page ) + ) : wp_admin_notice( __( 'Warning: these pages should not be the same as your Privacy Policy page!' ), array( diff --git a/wp-includes/version.php b/wp-includes/version.php index cf31f19e4f..253661c06e 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '7.0-alpha-61497'; +$wp_version = '7.0-alpha-61498'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.