We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e5745b5 commit 6b3e05bCopy full SHA for 6b3e05b
1 file changed
src/wp-admin/includes/class-wp-privacy-policy-content.php
@@ -329,6 +329,12 @@ public static function notice( $post = null ) {
329
$current_screen = get_current_screen();
330
$policy_page_id = (int) get_option( 'wp_page_for_privacy_policy' );
331
332
+ // If the privacy policy page has been deleted, reset the option and bail.
333
+ if ( $policy_page_id && ! get_post( $policy_page_id ) ) {
334
+ update_option( 'wp_page_for_privacy_policy', 0 );
335
+ return;
336
+ }
337
+
338
if ( 'post' !== $current_screen->base || $policy_page_id !== $post->ID ) {
339
return;
340
}
0 commit comments