diff --git a/wp-admin/includes/class-wp-site-health.php b/wp-admin/includes/class-wp-site-health.php
index 2da611c67f..6d31e72a4f 100644
|
a
|
b
|
class WP_Site_Health { |
| 288 | 288 | '<p>%s</p>', |
| 289 | 289 | __( 'Plugins extend your site’s functionality with things like contact forms, ecommerce and much more. That means they have deep access to your site, so it’s vital to keep them up to date.' ) |
| 290 | 290 | ), |
| 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 | ), |
| 292 | 296 | 'test' => 'plugin_version', |
| 293 | 297 | ); |
| 294 | 298 | |
| … |
… |
class WP_Site_Health { |
| 336 | 340 | $plugins_needs_update |
| 337 | 341 | ) |
| 338 | 342 | ); |
| | 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 | ); |
| 339 | 349 | } else { |
| 340 | 350 | $result['description'] .= sprintf( |
| 341 | 351 | '<p>%s</p>', |
| … |
… |
class WP_Site_Health { |
| 375 | 385 | $unused_plugins |
| 376 | 386 | ) |
| 377 | 387 | ); |
| | 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 | ); |
| 378 | 394 | } |
| 379 | 395 | |
| 380 | 396 | return $result; |
| … |
… |
class WP_Site_Health { |
| 402 | 418 | '<p>%s</p>', |
| 403 | 419 | __( 'Themes add your site’s look and feel. It’s important to keep them up to date, to stay consistent with your brand and keep your site secure.' ) |
| 404 | 420 | ), |
| 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 | ), |
| 406 | 426 | 'test' => 'theme_version', |
| 407 | 427 | ); |
| 408 | 428 | |
| … |
… |
class WP_Site_Health { |
| 622 | 642 | __( '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.' ) |
| 623 | 643 | ), |
| 624 | 644 | '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>', |
| 626 | 646 | esc_url( wp_get_update_php_url() ), |
| 627 | 647 | __( 'Learn more about updating PHP' ), |
| 628 | 648 | /* translators: accessibility text */ |
| … |
… |
class WP_Site_Health { |
| 705 | 725 | ), |
| 706 | 726 | 'description' => sprintf( |
| 707 | 727 | '<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 host.' ), |
| 709 | 729 | sprintf( |
| 710 | 730 | /* 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.' ), |
| 712 | 732 | 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)' ) |
| 716 | 739 | ) |
| 717 | 740 | ) |
| 718 | 741 | ), |
| … |
… |
class WP_Site_Health { |
| 904 | 927 | ), |
| 905 | 928 | 'description' => sprintf( |
| 906 | 929 | '<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.' ) |
| | 931 | ), |
| | 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)' ) |
| 908 | 938 | ), |
| 909 | | 'actions' => '', |
| 910 | 939 | 'test' => 'sql_server', |
| 911 | 940 | ); |
| 912 | 941 | |
| … |
… |
class WP_Site_Health { |
| 998 | 1027 | '<p>%s</p>', |
| 999 | 1028 | sprintf( |
| 1000 | 1029 | /* translators: %s: Version number. */ |
| 1001 | | __( 'WordPress’ utf8mb4 support requires MySQL version %s or greater.' ), |
| | 1030 | __( 'WordPress’ utf8mb4 support requires MySQL version %s or greater, Please contact your server administrator.' ), |
| 1002 | 1031 | '5.5.3' |
| 1003 | 1032 | ) |
| 1004 | 1033 | ); |
| … |
… |
class WP_Site_Health { |
| 1018 | 1047 | '<p>%s</p>', |
| 1019 | 1048 | sprintf( |
| 1020 | 1049 | /* translators: %s: Version number. */ |
| 1021 | | __( 'WordPress’ utf8mb4 support requires MariaDB version %s or greater.' ), |
| | 1050 | __( 'WordPress’ utf8mb4 support requires MariaDB version %s or greater, Please contact your server administrator.' ), |
| 1022 | 1051 | '5.5.0' |
| 1023 | 1052 | ) |
| 1024 | 1053 | ); |
| … |
… |
class WP_Site_Health { |
| 1053 | 1082 | '<p>%s</p>', |
| 1054 | 1083 | sprintf( |
| 1055 | 1084 | /* translators: %1$s: Name of the library, %2$s: Number of version. */ |
| 1056 | | __( 'WordPress’ utf8mb4 support requires MySQL client library (%1$s) version %2$s or newer.' ), |
| | 1085 | __( 'WordPress’ utf8mb4 support requires MySQL client library (%1$s) version %2$s or newer, Please contact your server administrator.' ), |
| 1057 | 1086 | 'mysqlnd', |
| 1058 | 1087 | '5.0.9' |
| 1059 | 1088 | ) |
| … |
… |
class WP_Site_Health { |
| 1069 | 1098 | '<p>%s</p>', |
| 1070 | 1099 | sprintf( |
| 1071 | 1100 | /* translators: %1$s: Name of the library, %2$s: Number of version. */ |
| 1072 | | __( 'WordPress’ utf8mb4 support requires MySQL client library (%1$s) version %2$s or newer.' ), |
| | 1101 | __( 'WordPress’ utf8mb4 support requires MySQL client library (%1$s) version %2$s or newer, Please contact your server administrator.' ), |
| 1073 | 1102 | 'libmysql', |
| 1074 | 1103 | '5.5.3' |
| 1075 | 1104 | ) |
| … |
… |
class WP_Site_Health { |
| 1124 | 1153 | sprintf( |
| 1125 | 1154 | /* translators: %1$s: The IP address WordPress.org resolves to. %2$s: The error returned by the lookup. */ |
| 1126 | 1155 | __( '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' ), |
| 1128 | 1157 | $wp_dotorg->get_error_message() |
| 1129 | 1158 | ) |
| 1130 | 1159 | ) |
| 1131 | 1160 | ); |
| | 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 | ); |
| 1132 | 1169 | } |
| 1133 | 1170 | |
| 1134 | 1171 | return $result; |
| … |
… |
class WP_Site_Health { |
| 1159 | 1196 | '<p>%s</p>', |
| 1160 | 1197 | __( '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.' ) |
| 1161 | 1198 | ), |
| 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 | ), |
| 1163 | 1206 | 'test' => 'is_in_debug_mode', |
| 1164 | 1207 | ); |
| 1165 | 1208 | |