From 5ac2b28396d702c0455d5da100c1efee6faf7fd4 Mon Sep 17 00:00:00 2001 From: Andrea Fercia Date: Mon, 15 Apr 2019 15:08:51 +0000 Subject: [PATCH] Administration: Provide translatable strings for the Site Health comment status report. Props ocean90. Fixes #46909. Built from https://develop.svn.wordpress.org/trunk@45200 git-svn-id: http://core.svn.wordpress.org/trunk@45009 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/class-wp-debug-data.php | 26 ++++++++++++----------- wp-includes/version.php | 2 +- 2 files changed, 15 insertions(+), 13 deletions(-) diff --git a/wp-admin/includes/class-wp-debug-data.php b/wp-admin/includes/class-wp-debug-data.php index f509b133dc..e827ab91b4 100644 --- a/wp-admin/includes/class-wp-debug-data.php +++ b/wp-admin/includes/class-wp-debug-data.php @@ -33,14 +33,15 @@ class WP_Debug_Data { global $wpdb; // Save few function calls. - $upload_dir = wp_get_upload_dir(); - $permalink_structure = get_option( 'permalink_structure' ); - $is_ssl = is_ssl(); - $users_can_register = get_option( 'users_can_register' ); - $is_multisite = is_multisite(); - $core_version = get_bloginfo( 'version' ); - $core_updates = get_core_updates(); - $core_update_needed = ''; + $upload_dir = wp_get_upload_dir(); + $permalink_structure = get_option( 'permalink_structure' ); + $is_ssl = is_ssl(); + $users_can_register = get_option( 'users_can_register' ); + $default_comment_status = get_option( 'default_comment_status' ); + $is_multisite = is_multisite(); + $core_version = get_bloginfo( 'version' ); + $core_updates = get_core_updates(); + $core_update_needed = ''; foreach ( $core_updates as $core => $update ) { if ( 'upgrade' === $update->response ) { @@ -87,21 +88,22 @@ class WP_Debug_Data { ), 'https_status' => array( 'label' => __( 'Is this site using HTTPS?' ), - 'value' => ( $is_ssl ? __( 'Yes' ) : __( 'No' ) ), + 'value' => $is_ssl ? __( 'Yes' ) : __( 'No' ), 'debug' => $is_ssl, ), 'user_registration' => array( 'label' => __( 'Can anyone register on this site?' ), - 'value' => ( $users_can_register ? __( 'Yes' ) : __( 'No' ) ), + 'value' => $users_can_register ? __( 'Yes' ) : __( 'No' ), 'debug' => $users_can_register, ), 'default_comment_status' => array( 'label' => __( 'Default comment status' ), - 'value' => get_option( 'default_comment_status' ), + 'value' => 'open' === $default_comment_status ? _x( 'Open', 'comment status' ) : _x( 'Closed', 'comment status' ), + 'debug' => $default_comment_status, ), 'multisite' => array( 'label' => __( 'Is this a multisite?' ), - 'value' => ( $is_multisite ? __( 'Yes' ) : __( 'No' ) ), + 'value' => $is_multisite ? __( 'Yes' ) : __( 'No' ), 'debug' => $is_multisite, ), ), diff --git a/wp-includes/version.php b/wp-includes/version.php index f85a810ae2..848dcc2467 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.2-beta3-45199'; +$wp_version = '5.2-beta3-45200'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.