Make WordPress Core


Ignore:
Timestamp:
06/30/2023 11:11:13 AM (17 months ago)
Author:
SergeyBiryukov
Message:

Site Health: Correct the label for wp-content directory check.

This removes HTML tags from the label, which were not displayed as expected due to escaping. Including the directory name in the label is also redundant, as it is already mentioned in the check result description directly below.

Includes:

  • Adjusting a few other labels for consistency.
  • Moving wp-content out of the translatable string in a similar message in WP_Upgrader::generic_strings().

Follow-up to [55720].

Props dlh, mukesh27, audrasjb, SergeyBiryukov.
See #58678.

File:
1 edited

Legend:

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

    r55911 r56117  
    190190        $this->strings['fs_error']          = __( 'Filesystem error.' );
    191191        $this->strings['fs_no_root_dir']    = __( 'Unable to locate WordPress root directory.' );
    192         $this->strings['fs_no_content_dir'] = __( 'Unable to locate WordPress content directory (wp-content).' );
     192        $this->strings['fs_no_content_dir'] = sprintf( __( 'Unable to locate WordPress content directory (%s).' ), 'wp-content' );
    193193        $this->strings['fs_no_plugins_dir'] = __( 'Unable to locate WordPress plugin directory.' );
    194194        $this->strings['fs_no_themes_dir']  = __( 'Unable to locate WordPress theme directory.' );
Note: See TracChangeset for help on using the changeset viewer.