From e0a266071970cb95d1ecb3f8b637c2fc361e0d33 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sat, 22 Feb 2020 18:56:06 +0000 Subject: [PATCH] I18N: Replace `.htaccess` with placeholders in the strings for Site Health custom rules check. Props ramiy. Fixes #48864. Built from https://develop.svn.wordpress.org/trunk@47345 git-svn-id: http://core.svn.wordpress.org/trunk@47132 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/class-wp-debug-data.php | 10 +++++++++- wp-includes/version.php | 2 +- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/wp-admin/includes/class-wp-debug-data.php b/wp-admin/includes/class-wp-debug-data.php index 40c4f5d13f..d93f201500 100644 --- a/wp-admin/includes/class-wp-debug-data.php +++ b/wp-admin/includes/class-wp-debug-data.php @@ -704,9 +704,17 @@ class WP_Debug_Data { $filtered_htaccess_content = trim( preg_replace( '/\# BEGIN WordPress[\s\S]+?# END WordPress/si', '', $htaccess_content ) ); $filtered_htaccess_content = ! empty( $filtered_htaccess_content ); + if ( $filtered_htaccess_content ) { + /* translators: %s: .htaccess */ + $htaccess_rules_string = sprintf( __( 'Custom rules have been added to your %s file.' ), '.htaccess' ); + } else { + /* translators: %s: .htaccess */ + $htaccess_rules_string = sprintf( __( 'Your %s file contains only core WordPress features.' ), '.htaccess' ); + } + $info['wp-server']['fields']['htaccess_extra_rules'] = array( 'label' => __( '.htaccess rules' ), - 'value' => ( $filtered_htaccess_content ? __( 'Custom rules have been added to your .htaccess file.' ) : __( 'Your .htaccess file contains only core WordPress features.' ) ), + 'value' => $htaccess_rules_string, 'debug' => $filtered_htaccess_content, ); } diff --git a/wp-includes/version.php b/wp-includes/version.php index 56683c3f1f..757ddac76e 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.4-beta2-47344'; +$wp_version = '5.4-beta2-47345'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.