Ticket #46734: 46734.6.diff
File 46734.6.diff, 9.6 KB (added by , 6 years ago) |
---|
-
src/wp-admin/css/site-health.css
381 381 display: none; 382 382 } 383 383 384 .health-check-accordion-panel a .dashicons { 385 text-decoration: none; 386 } 387 384 388 /* Better position for the WordPress admin notices and update nag. */ 385 389 .site-health .notice { 386 390 margin: 5px 20px 15px 22px; -
src/wp-admin/includes/class-wp-site-health.php
289 289 '<p>%s</p>', 290 290 __( '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.' ) 291 291 ), 292 'actions' => '', 292 'actions' => sprintf( 293 '<p><a href="%s">%s</a></p>', 294 esc_url( admin_url( 'plugins.php' ) ), 295 __( 'Manage your plugins' ) 296 ), 293 297 'test' => 'plugin_version', 294 298 ); 295 299 … … 335 339 $plugins_need_update 336 340 ) 337 341 ); 342 343 $result['actions'] .= sprintf( 344 '<p><a href="%s">%s</a></p>', 345 esc_url( admin_url( 'plugins.php?plugin_status=upgrade' ) ), 346 __( 'Update your plugins' ) 347 ); 338 348 } else { 339 349 if ( 1 === $plugins_active ) { 340 350 $result['description'] .= sprintf( … … 378 388 ), 379 389 __( 'Inactive plugins are tempting targets for attackers. If you’re not going to use a plugin, we recommend you remove it.' ) 380 390 ); 391 392 $result['actions'] .= sprintf( 393 '<p><a href="%s">%s</a></p>', 394 esc_url( admin_url( 'plugins.php?plugin_status=inactive' ) ), 395 __( 'Manage inactive plugins' ) 396 ); 381 397 } 382 398 383 399 return $result; … … 405 421 '<p>%s</p>', 406 422 __( '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.' ) 407 423 ), 408 'actions' => '', 424 'actions' => sprintf( 425 '<p><a href="%s">%s</a></p>', 426 esc_url( admin_url( 'themes.php' ) ), 427 __( 'Manage your themes' ) 428 ), 409 429 'test' => 'theme_version', 410 430 ); 411 431 … … 630 650 __( '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.' ) 631 651 ), 632 652 'actions' => sprintf( 633 '< 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>',653 '<p><a href="%s" target="_blank" rel="noopener noreferrer">%s <span class="screen-reader-text">%s</span><span aria-hidden="true" class="dashicons dashicons-external"></span></a></p>', 634 654 esc_url( wp_get_update_php_url() ), 635 655 __( 'Learn more about updating PHP' ), 636 656 /* translators: accessibility text */ … … 716 736 ), 717 737 'description' => sprintf( 718 738 '<p>%s</p><p>%s</p>', 719 __( 'PHP modules perform most of the tasks on the server that make your site run .' ),739 __( '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.' ), 720 740 sprintf( 721 741 /* translators: %s: Link to the hosting group page about recommended PHP modules. */ 722 __( 'The Hosting team maintains a list of those modules, both recommended and required, in <a href="%s">the team handbook</a>.' ), 723 /* translators: The address to describe PHP modules and their use. */ 724 esc_url( __( 'https://make.wordpress.org/hosting/handbook/handbook/server-environment/#php-extensions' ) ) 742 __( 'The WordPress Hosting Team maintains a list of those modules, both recommended and required, in %s.' ), 743 sprintf( 744 '<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>', 745 /* translators: Localized team handbook, if one exists. */ 746 esc_url( __( 'https://make.wordpress.org/hosting/handbook/handbook/server-environment/#php-extensions' ) ), 747 __( 'the team handbook' ), 748 /* translators: accessibility text */ 749 __( '(opens in a new tab)' ) 750 ) 725 751 ) 726 752 ), 727 753 'actions' => '', … … 912 938 ), 913 939 'description' => sprintf( 914 940 '<p>%s</p>', 915 __( 'The SQL server is the database where WordPress stores all your site’s content and settings' )941 __( 'The SQL server is a required piece of software for the database WordPress uses to stores all your site’s content and settings.' ) 916 942 ), 917 'actions' => '', 943 'actions' => sprintf( 944 '<p><a href="%s" target="_blank" rel="noopener noreferrer">%s <span class="screen-reader-text">%s</span><span aria-hidden="true" class="dashicons dashicons-external"></span></a></p>', 945 /* translators: Localized version of WordPress requirements if one exists. */ 946 esc_url( __( 'https://wordpress.org/about/requirements/' ) ), 947 __( 'Read more about what WordPress requires to run.' ), 948 /* translators: accessibility text */ 949 __( '(opens in a new tab)' ) 950 ), 918 951 'test' => 'sql_server', 919 952 ); 920 953 … … 1008 1041 '<p>%s</p>', 1009 1042 sprintf( 1010 1043 /* translators: %s: Version number. */ 1011 __( 'WordPress’ utf8mb4 support requires MySQL version %s or greater. ' ),1044 __( 'WordPress’ utf8mb4 support requires MySQL version %s or greater. Please contact your server administrator.' ), 1012 1045 '5.5.3' 1013 1046 ) 1014 1047 ); … … 1028 1061 '<p>%s</p>', 1029 1062 sprintf( 1030 1063 /* translators: %s: Version number. */ 1031 __( 'WordPress’ utf8mb4 support requires MariaDB version %s or greater. ' ),1064 __( 'WordPress’ utf8mb4 support requires MariaDB version %s or greater. Please contact your server administrator.' ), 1032 1065 '5.5.0' 1033 1066 ) 1034 1067 ); … … 1063 1096 '<p>%s</p>', 1064 1097 sprintf( 1065 1098 /* translators: 1: Name of the library, 2: Number of version. */ 1066 __( 'WordPress’ utf8mb4 support requires MySQL client library (%1$s) version %2$s or newer. ' ),1099 __( 'WordPress’ utf8mb4 support requires MySQL client library (%1$s) version %2$s or newer. Please contact your server administrator.' ), 1067 1100 'mysqlnd', 1068 1101 '5.0.9' 1069 1102 ) … … 1079 1112 '<p>%s</p>', 1080 1113 sprintf( 1081 1114 /* translators: 1: Name of the library, 2: Number of version. */ 1082 __( 'WordPress’ utf8mb4 support requires MySQL client library (%1$s) version %2$s or newer. ' ),1115 __( 'WordPress’ utf8mb4 support requires MySQL client library (%1$s) version %2$s or newer. Please contact your server administrator.' ), 1083 1116 'libmysql', 1084 1117 '5.5.3' 1085 1118 ) … … 1134 1167 sprintf( 1135 1168 /* translators: 1: The IP address WordPress.org resolves to. 2: The error returned by the lookup. */ 1136 1169 __( 'Your site is unable to reach WordPress.org at %1$s, and returned the error: %2$s' ), 1137 gethostbyname( ' wordpress.org' ),1170 gethostbyname( 'api.wordpress.org' ), 1138 1171 $wp_dotorg->get_error_message() 1139 1172 ) 1140 1173 ) 1141 1174 ); 1175 1176 $result['actions'] = sprintf( 1177 '<p><a href="%s" target="_blank" rel="noopener noreferrer">%s <span class="screen-reader-text">%s</span><span aria-hidden="true" class="dashicons dashicons-external"></span></a></p>', 1178 /* translators: Localized Support reference. */ 1179 esc_url( __( 'https://wordpress.org/support' ) ), 1180 __( 'Get help resolving this issue.' ), 1181 /* translators: accessibility text */ 1182 __( '(opens in a new tab)' ) 1183 ); 1142 1184 } 1143 1185 1144 1186 return $result; … … 1169 1211 '<p>%s</p>', 1170 1212 __( '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.' ) 1171 1213 ), 1172 'actions' => '', 1214 'actions' => sprintf( 1215 '<p><a href="%s" target="_blank" rel="noopener noreferrer">%s <span class="screen-reader-text">%s</span><span aria-hidden="true" class="dashicons dashicons-external"></span></a></p>', 1216 /* translators: Documentation explaining debugging in WordPress. */ 1217 esc_url( __( 'https://wordpress.org/support/article/debugging-in-wordpress/' ) ), 1218 __( 'Read about debugging in WordPress.' ), 1219 /* translators: accessibility text */ 1220 __( '(opens in a new tab)' ) 1221 ), 1173 1222 'test' => 'is_in_debug_mode', 1174 1223 ); 1175 1224 … … 1231 1280 __( 'An HTTPS connection is needed for many features on the web today, it also gains the trust of your visitors by helping to protecting their online privacy.' ) 1232 1281 ), 1233 1282 'actions' => sprintf( 1234 '<p><a href="%s" >%s</a></p>',1235 esc_url(1236 /* translators: Documentation explaining HTTPS and why it should be used. */1237 __( 'https://wordpress.org/support/article/why-should-i-use-https/' )1238 ),1239 __( ' Read more about why you should use HTTPS' )1283 '<p><a href="%s" target="_blank" rel="noopener noreferrer">%s <span class="screen-reader-text">%s</span><span aria-hidden="true" class="dashicons dashicons-external"></span></a></p>', 1284 /* translators: Documentation explaining HTTPS and why it should be used. */ 1285 esc_url( __( 'https://wordpress.org/support/article/why-should-i-use-https/' ) ), 1286 __( 'Read more about why you should use HTTPS' ), 1287 /* translators: accessibility text */ 1288 __( '(opens in a new tab)' ) 1240 1289 ), 1241 1290 'test' => 'https_status', 1242 1291 );