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
This commit is contained in:
parent
b4cea6ae93
commit
e0a2660719
|
@ -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,
|
||||
);
|
||||
}
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue