WordPress.org

Make WordPress Core


Ignore:
Timestamp:
02/22/2020 06:54:09 PM (10 months ago)
Author:
SergeyBiryukov
Message:

I18N: Replace .htaccess with placeholders in the strings for Site Health custom rules check.

Props ramiy.
Fixes #48864.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-debug-data.php

    r47268 r47345  
    705705            $filtered_htaccess_content = ! empty( $filtered_htaccess_content );
    706706
     707            if ( $filtered_htaccess_content ) {
     708                /* translators: %s: .htaccess */
     709                $htaccess_rules_string = sprintf( __( 'Custom rules have been added to your %s file.' ), '.htaccess' );
     710            } else {
     711                /* translators: %s: .htaccess */
     712                $htaccess_rules_string = sprintf( __( 'Your %s file contains only core WordPress features.' ), '.htaccess' );
     713            }
     714
    707715            $info['wp-server']['fields']['htaccess_extra_rules'] = array(
    708716                'label' => __( '.htaccess rules' ),
    709                 'value' => ( $filtered_htaccess_content ? __( 'Custom rules have been added to your .htaccess file.' ) : __( 'Your .htaccess file contains only core WordPress features.' ) ),
     717                'value' => $htaccess_rules_string,
    710718                'debug' => $filtered_htaccess_content,
    711719            );
Note: See TracChangeset for help on using the changeset viewer.