Make WordPress Core

Ticket #55758: 55758-php-2.diff

File 55758-php-2.diff, 3.9 KB (added by kebbet, 2 years ago)
  • src/wp-admin/includes/class-wp-automatic-updater.php

    diff --git a/src/wp-admin/includes/class-wp-automatic-updater.php b/src/wp-admin/includes/class-wp-automatic-updater.php
    index c8227c3fc3..3e9bc6d257 100644
    a b class WP_Automatic_Updater { 
    829829                }
    830830
    831831                if ( $critical_support ) {
    832                         $body .= ' ' . __( "If you reach out to us, we'll also ensure you'll never have this problem again." );
     832                        $body .= ' ' . __( "Reach out to WordPress Core developers to ensure you'll never have this problem again." );
    833833                }
    834834
    835835                // If things are successful and we're now on the latest, mention plugins and themes if any are out of date.
  • src/wp-admin/includes/class-wp-site-health-auto-updates.php

    diff --git a/src/wp-admin/includes/class-wp-site-health-auto-updates.php b/src/wp-admin/includes/class-wp-site-health-auto-updates.php
    index 5393b6f3c9..378c90d389 100644
    a b class WP_Site_Health_Auto_Updates { 
    166166                if ( ! empty( $failed['critical'] ) ) {
    167167                        $description  = __( 'A previous automatic background update ended with a critical failure, so updates are now disabled.' );
    168168                        $description .= ' ' . __( 'You would have received an email because of this.' );
    169                         $description .= ' ' . __( "When you've been able to update using the \"Update now\" button on Dashboard > Updates, we'll clear this error for future update attempts." );
     169                        $description .= ' ' . __( "When you've been able to update using the \"Update now\" button on Dashboard > Updates, this error will be cleared for future update attempts." );
    170170                        $description .= ' ' . sprintf(
    171171                                /* translators: %s: Code of error shown. */
    172172                                __( 'The error code was %s.' ),
    class WP_Site_Health_Auto_Updates { 
    183183                        $description .= ' ' . __( 'You would have received an email because of this.' );
    184184                }
    185185
    186                 $description .= ' ' . __( "We'll try again with the next release." );
     186                $description .= ' ' . __( "Another attempt will be made with the next release." );
    187187                $description .= ' ' . sprintf(
    188188                        /* translators: %s: Code of error shown. */
    189189                        __( 'The error code was %s.' ),
  • src/wp-admin/includes/update-core.php

    diff --git a/src/wp-admin/includes/update-core.php b/src/wp-admin/includes/update-core.php
    index 2ccea37caa..38110d0844 100644
    a b function update_core( $from, $to ) { 
    11681168                        if ( $files_not_writable ) {
    11691169                                return new WP_Error(
    11701170                                        'files_not_writable',
    1171                                         __( 'The update cannot be installed because we will be unable to copy some files. This is usually due to inconsistent file permissions.' ),
     1171                                        __( 'The update cannot be installed because your site is unable to copy some files. This is usually due to inconsistent file permissions.' ),
    11721172                                        implode( ', ', $error_data )
    11731173                                );
    11741174                        }
    function update_core( $from, $to ) { 
    12041204                        $wp_filesystem->delete( $from, true );
    12051205                        $result = new WP_Error(
    12061206                                'copy_failed_for_version_file',
    1207                                 __( 'The update cannot be installed because we will be unable to copy some files. This is usually due to inconsistent file permissions.' ),
     1207                                __( 'The update cannot be installed because your site is unable to copy some files. This is usually due to inconsistent file permissions.' ),
    12081208                                'wp-includes/version.php'
    12091209                        );
    12101210                }
  • src/wp-load.php

    diff --git a/src/wp-load.php b/src/wp-load.php
    index c813cba56e..9e8241fef5 100644
    a b if ( file_exists( ABSPATH . 'wp-config.php' ) ) { 
    8787        // Die with an error message.
    8888        $die = '<p>' . sprintf(
    8989                /* translators: %s: wp-config.php */
    90                 __( "There doesn't seem to be a %s file. I need this before we can get started." ),
     90                __( "There doesn't seem to be a %s file. It is needed before the installation can continue." ),
    9191                '<code>wp-config.php</code>'
    9292        ) . '</p>';
    9393        $die .= '<p>' . sprintf(