diff -r 48c4eec2b7e6 -r 8c2e4d02f4ef wp/wp-admin/includes/class-wp-privacy-policy-content.php --- a/wp/wp-admin/includes/class-wp-privacy-policy-content.php Fri Sep 05 18:40:08 2025 +0200 +++ b/wp/wp-admin/includes/class-wp-privacy-policy-content.php Fri Sep 05 18:52:52 2025 +0200 @@ -120,7 +120,7 @@ // Cache the result for use before `admin_init` (see above). if ( $cached !== $state ) { - update_option( '_wp_suggested_policy_text_has_changed', $state ); + update_option( '_wp_suggested_policy_text_has_changed', $state, false ); } return 'changed' === $state; @@ -333,7 +333,7 @@ return; } - $message = __( 'Need help putting together your new Privacy Policy page? Check out our guide for recommendations on what content to include, along with policies suggested by your plugins and theme.' ); + $message = __( 'Need help putting together your new Privacy Policy page? Check out the guide for recommendations on what content to include, along with policies suggested by your plugins and theme.' ); $url = esc_url( admin_url( 'options-privacy.php?tab=policyguide' ) ); $label = __( 'View Privacy Policy Guide.' ); @@ -378,14 +378,14 @@ public static function privacy_policy_guide() { $content_array = self::get_suggested_policy_text(); - $content = ''; $date_format = __( 'F j, Y' ); + $i = 0; + foreach ( $content_array as $section ) { - $class = ''; - $meta = ''; + ++$i; + $removed = ''; - if ( ! empty( $section['removed'] ) ) { $badge_class = ' red'; $date = date_i18n( $date_format, $section['removed'] ); @@ -409,11 +409,9 @@ } $plugin_name = esc_html( $section['plugin_name'] ); - - $sanitized_policy_name = sanitize_title_with_dashes( $plugin_name ); ?>

-

-