I18N: Replace .htaccess
with placeholders in the strings for Site Health custom rules check.
Props ramiy. Fixes #48864. git-svn-id: https://develop.svn.wordpress.org/trunk@47345 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
74908c06bf
commit
af57dcb03e
@ -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,
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user