Make WordPress Core

Changeset 48539


Ignore:
Timestamp:
07/21/2020 03:51:22 PM (5 years ago)
Author:
SergeyBiryukov
Message:

Site Health: Move post_max_size and upload_max_filesize out of a translatable string in file upload checks.

Simplify some other strings, use a consistent format for translator comments.

Follow-up to [48535].

See #50038.

File:
1 edited

Legend:

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

    r48538 r48539  
    19741974                '<p>%s</p>',
    19751975                sprintf(
    1976                     /* translators: %1$s: file_uploads %2$s: php.ini */
    1977                     __( 'The %1$s directive in %2$s determines if uploading to is allowed in your WordPress.' ),
     1976                    /* translators: 1: file_uploads, 2: php.ini */
     1977                    __( 'The %1$s directive in %2$s determines if uploading files is allowed on your site.' ),
    19781978                    '<code>file_uploads</code>',
    19791979                    '<code>php.ini</code>'
     
    19991999                '<p>%s</p>',
    20002000                sprintf(
    2001                     /* translators: %1$s: file_uploads %2$s: 0 */
    2002                     __( '%1$s is set to %2$s. You won\'t be able to upload files in your WordPress.' ),
     2001                    /* translators: 1: file_uploads, 2: 0 */
     2002                    __( '%1$s is set to %2$s. You won\'t be able to upload files on your site.' ),
    20032003                    '<code>file_uploads</code>',
    20042004                    '<code>0</code>'
     
    20122012
    20132013        if ( wp_convert_hr_to_bytes( $post_max_size ) !== wp_convert_hr_to_bytes( $upload_max_size ) ) {
    2014             $result['label']       = __( 'Mismatched "post_max_size" and "upload_max_filesize" values.' );
     2014            $result['label'] = sprintf(
     2015                /* translators: 1: post_max_size, 2: upload_max_filesize */
     2016                __( 'Mismatched "%1$s" and "%2$s" values.' ),
     2017                'post_max_size',
     2018                'upload_max_filesize'
     2019            );
    20152020            $result['status']      = 'recommended';
    20162021            $result['description'] = sprintf(
    20172022                '<p>%s</p>',
    20182023                sprintf(
    2019                     /* translators: %1$s: post_max_size %2$s: upload_max_filesize */
     2024                    /* translators: 1: post_max_size, 2: upload_max_filesize */
    20202025                    __( 'The settings for %1$s and %2$s are not the same, this could cause some problems when trying to upload files.' ),
    20212026                    '<code>post_max_size</code>',
Note: See TracChangeset for help on using the changeset viewer.