Commit f64c907a65 for wordpress.org

commit f64c907a65857d31e21062668062ae6fc2f40ad6
Author: lancewillett <lancewillett@git.wordpress.org>
Date:   Sat Nov 7 18:39:00 2026 +0000

    Site Health: Use a passing label for the insecure registration test.

    The insecure registration check used its warning label as the default, so a site with safe registration settings listed "Open Registration with privileged default role" under Passed tests. Give the passing result its own label, set the warning label only on the critical result, and wrap the critical description in a paragraph like other Site Health results.

    Add the first tests for this check.

    Follow-up to [61687].

    Developed in: https://github.com/WordPress/wordpress-develop/pull/14669

    Props ravipatel, johnbillion.
    Fixes #66359.

    Built from https://develop.svn.wordpress.org/trunk@65332


    git-svn-id: http://core.svn.wordpress.org/trunk@64472 1a063a9b-81f0-0310-95a4-ce76da25c4cd

diff --git a/wp-admin/includes/class-wp-site-health.php b/wp-admin/includes/class-wp-site-health.php
index 6b7b8907d5..17a4a190cd 100644
--- a/wp-admin/includes/class-wp-site-health.php
+++ b/wp-admin/includes/class-wp-site-health.php
@@ -1903,7 +1903,7 @@ class WP_Site_Health {
 		$default_role       = get_option( 'default_role' );

 		$result = array(
-			'label'       => __( 'Open Registration with privileged default role' ),
+			'label'       => __( 'New users are not given a privileged role' ),
 			'status'      => 'good',
 			'badge'       => array(
 				'label' => __( 'Security' ),
@@ -1915,7 +1915,8 @@ class WP_Site_Health {
 		);

 		if ( $users_can_register && in_array( $default_role, array( 'editor', 'administrator' ), true ) ) {
-			$result['description'] = __( 'Registration is open to anyone, and the default role is set to a privileged role.' );
+			$result['label']       = __( 'Open registration with a privileged default role' );
+			$result['description'] = '<p>' . __( 'Registration is open to anyone, and the default role is set to a privileged role.' ) . '</p>';
 			$result['status']      = 'critical';
 			$result['actions']     = sprintf(
 				'<p><a href="%s">%s</a></p>',
diff --git a/wp-includes/version.php b/wp-includes/version.php
index 832116a835..41f2e1139c 100644
--- a/wp-includes/version.php
+++ b/wp-includes/version.php
@@ -16,7 +16,7 @@
  *
  * @global string $wp_version
  */
-$wp_version = '7.2-beta4-65331';
+$wp_version = '7.2-beta4-65332';

 /**
  * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.