Make WordPress Core

Ticket #46734: 46734.2.diff

File 46734.2.diff, 7.8 KB (added by garrett-eclipse, 6 years ago)

Minor grammar fix, and caught another 'host'

  • src/wp-admin/includes/class-wp-site-health.php

     
    288288                                '<p>%s</p>',
    289289                                __( 'Plugins extend your site&#8217;s functionality with things like contact forms, ecommerce and much more. That means they have deep access to your site, so it&#8217;s vital to keep them up to date.' )
    290290                        ),
    291                         'actions'     => '',
     291                        'actions'     => sprintf(
     292                                '<p><a href="%1$s">%2$s</a></p>',
     293                                esc_url( admin_url( 'plugins.php' ) ),
     294                                __( 'Manage your plugins' )
     295                        ),
    292296                        'test'        => 'plugin_version',
    293297                );
    294298
     
    336340                                        $plugins_needs_update
    337341                                )
    338342                        );
     343
     344                        $result['actions'] .= sprintf(
     345                                '<p><a href="%1$s">%$2s</a></p>',
     346                                esc_url( admin_url( 'plugins.php?plugin_status=upgrade' ) ),
     347                                __( 'Update your plugins' )
     348                        );
    339349                } else {
    340350                        $result['description'] .= sprintf(
    341351                                '<p>%s</p>',
     
    375385                                        $unused_plugins
    376386                                )
    377387                        );
     388
     389                        $result['actions'] .= sprintf(
     390                                '<p><a href="%1$s">%2$s</a></p>',
     391                                esc_url( admin_url( 'plugins.php?plugin_status=inactive' ) ),
     392                                __( 'Manage inactive plugins' )
     393                        );
    378394                }
    379395
    380396                return $result;
     
    402418                                '<p>%s</p>',
    403419                                __( 'Themes add your site&#8217;s look and feel. It&#8217;s important to keep them up to date, to stay consistent with your brand and keep your site secure.' )
    404420                        ),
    405                         'actions'     => '',
     421                        'actions'     => sprintf(
     422                                '<p><a href="%1$s">%2$s</a></p>',
     423                                esc_url( admin_url( 'themes.php' ) ),
     424                                __( 'Manage your themes' )
     425                        ),
    406426                        'test'        => 'theme_version',
    407427                );
    408428
     
    622642                                __( 'PHP is the programming language we use to build and maintain WordPress. Newer versions of PHP are both faster and more secure, so updating will have a positive effect on your site’s performance.' )
    623643                        ),
    624644                        'actions'     => sprintf(
    625                                 '<a class="button button-primary" href="%1$s" target="_blank" rel="noopener noreferrer">%2$s <span class="screen-reader-text">%3$s</span><span aria-hidden="true" class="dashicons dashicons-external"></span></a>',
     645                                '<p><a href="%1$s" target="_blank" rel="noopener noreferrer">%2$s <span class="screen-reader-text">%3$s</span><span aria-hidden="true" class="dashicons dashicons-external"></span></a></p>',
    626646                                esc_url( wp_get_update_php_url() ),
    627647                                __( 'Learn more about updating PHP' ),
    628648                                /* translators: accessibility text */
     
    705725                        ),
    706726                        'description' => sprintf(
    707727                                '<p>%s</p><p>%s</p>',
    708                                 __( 'PHP modules perform most of the tasks on the server that make your site run.' ),
     728                                __( 'PHP modules perform most of the tasks on the server that make your site run, and any changes to these must be done by your server administrator.' ),
    709729                                sprintf(
    710730                                        /* translators: %s: Link to the hosting group page about recommended PHP modules. */
    711                                         __( 'The Hosting team maintains a list of those modules, both recommended and required, in %s.' ),
     731                                        __( 'The WordPress Hosting Team maintains a list of those modules, both recommended and required, in %s.' ),
    712732                                        sprintf(
    713                                                 '<a href="%s">%s</a>',
    714                                                 esc_url( _x( 'https://make.wordpress.org/hosting/handbook/handbook/server-environment/#php-extensions', 'The address to describe PHP modules and their use.' ) ),
    715                                                 __( 'the team handbook' )
     733                                                '<a href="%1$s" target="_blank" rel="noopener noreferrer">%2$s <span class="screen-reader-text">%3$s</span><span aria-hidden="true" class="dashicons dashicons-external"></span></a>',
     734                                                // translators: Localized team handbook, if one exists.
     735                                                esc_url( __( 'https://make.wordpress.org/hosting/handbook/handbook/server-environment/#php-extensions' ) ),
     736                                                __( 'the team handbook' ),
     737                                                /* translators: accessibility text */
     738                                                __( '(opens in a new tab)' )
    716739                                        )
    717740                                )
    718741                        ),
     
    904927                        ),
    905928                        'description' => sprintf(
    906929                                '<p>%s</p>',
    907                                 __( 'The SQL server is the database where WordPress stores all your site’s content and settings' )
     930                                __( 'The SQL server is a required piece of software for the database WordPress uses to stores all your site’s content and settings.' )
    908931                        ),
    909                         'actions'     => '',
     932                        'actions'     => sprintf(
     933                                '<p><a href="%1$s" target="_blank" rel="noopener noreferrer">%2$s <span class="screen-reader-text">%3$s</span><span aria-hidden="true" class="dashicons dashicons-external"></span></a></p>',
     934                                esc_url( __( 'https://wordpress.org/about/requirements/' ) ),
     935                                __( 'Read more about what WordPress requires to run.' ),
     936                                /* translators: accessibility text */
     937                                __( '(opens in a new tab)' )
     938                        ),
    910939                        'test'        => 'sql_server',
    911940                );
    912941
     
    9981027                                        '<p>%s</p>',
    9991028                                        sprintf(
    10001029                                                /* translators: %s: Version number. */
    1001                                                 __( 'WordPress&#8217; utf8mb4 support requires MySQL version %s or greater.' ),
     1030                                                __( 'WordPress&#8217; utf8mb4 support requires MySQL version %s or greater. Please contact your server administrator.' ),
    10021031                                                '5.5.3'
    10031032                                        )
    10041033                                );
     
    10181047                                        '<p>%s</p>',
    10191048                                        sprintf(
    10201049                                                /* translators: %s: Version number. */
    1021                                                 __( 'WordPress&#8217; utf8mb4 support requires MariaDB version %s or greater.' ),
     1050                        __( 'WordPress&#8217; utf8mb4 support requires MariaDB version %s or greater. Please contact your server administrator.' ),
    10221051                                                '5.5.0'
    10231052                                        )
    10241053                                );
     
    10531082                                        '<p>%s</p>',
    10541083                                        sprintf(
    10551084                                                /* translators: %1$s: Name of the library, %2$s: Number of version. */
    1056                                                 __( 'WordPress&#8217; utf8mb4 support requires MySQL client library (%1$s) version %2$s or newer.' ),
     1085                                                __( 'WordPress&#8217; utf8mb4 support requires MySQL client library (%1$s) version %2$s or newer. Please contact your server administrator.' ),
    10571086                                                'mysqlnd',
    10581087                                                '5.0.9'
    10591088                                        )
     
    10691098                                        '<p>%s</p>',
    10701099                                        sprintf(
    10711100                                                /* translators: %1$s: Name of the library, %2$s: Number of version. */
    1072                                                 __( 'WordPress&#8217; utf8mb4 support requires MySQL client library (%1$s) version %2$s or newer.' ),
     1101                                                __( 'WordPress&#8217; utf8mb4 support requires MySQL client library (%1$s) version %2$s or newer. Please contact your server administrator.' ),
    10731102                                                'libmysql',
    10741103                                                '5.5.3'
    10751104                                        )
     
    11241153                                        sprintf(
    11251154                                                /* translators: %1$s: The IP address WordPress.org resolves to. %2$s: The error returned by the lookup. */
    11261155                                                __( 'Your site is unable to reach WordPress.org at %1$s, and returned the error: %2$s' ),
    1127                                                 gethostbyname( 'wordpress.org' ),
     1156                                                gethostbyname( 'api.wordpress.org' ),
    11281157                                                $wp_dotorg->get_error_message()
    11291158                                        )
    11301159                                )
    11311160                        );
     1161
     1162                        $result['actions'] = sprintf(
     1163                                '<p><a href="%1$s" target="_blank" rel="noopener noreferrer">%2$s <span class="screen-reader-text">%3$s</span><span aria-hidden="true" class="dashicons dashicons-external"></span></a></p>',
     1164                                esc_url( 'https://wordpress.org/support' ),
     1165                                __( 'Get help resolving this issue.' ),
     1166                                /* translators: accessibility text */
     1167                                __( '(opens in a new tab)' )
     1168                        );
    11321169                }
    11331170
    11341171                return $result;
     
    11591196                                '<p>%s</p>',
    11601197                                __( 'Debug mode is often enabled to gather more details about an error or site failure, but may contain sensitive information which should not be available on a publicly available website.' )
    11611198                        ),
    1162                         'actions'     => '',
     1199                        'actions'     => sprintf(
     1200                                '<p><a href="%1$s" target="_blank" rel="noopener noreferrer">%2$s <span class="screen-reader-text">%3$s</span><span aria-hidden="true" class="dashicons dashicons-external"></span></a></p>',
     1201                                esc_url( 'https://wordpress.org/support/article/debugging-in-wordpress/' ),
     1202                                __( 'Read about debugging in WordPress.' ),
     1203                                /* translators: accessibility text */
     1204                                __( '(opens in a new tab)' )
     1205                        ),
    11631206                        'test'        => 'is_in_debug_mode',
    11641207                );
    11651208