-
diff --git a/src/wp-admin/_index.php b/src/wp-admin/_index.php
index ccdf525c0c..d534f6b25f 100644
|
a
|
b
|
if ( is_blog_admin() && current_user_can( 'edit_posts' ) ) { |
| 94 | 94 | |
| 95 | 95 | $help .= '<p>' . sprintf( |
| 96 | 96 | /* translators: %s: WordPress Planet URL. */ |
| 97 | | __( '<strong>WordPress Events and News</strong> — Upcoming events near you as well as the latest news from the official WordPress project and the <a href="%s">WordPress Planet</a>.' ), |
| | 97 | __( '<strong>WordPress Events and News</strong> — Upcoming events near you as well as the latest news from the official WordPress project and the <a href="%s" target="_blank">WordPress Planet</a>.' ), |
| 98 | 98 | __( 'https://planet.wordpress.org/' ) |
| 99 | 99 | ) . '</p>'; |
| 100 | 100 | |
| … |
… |
if ( ! $is_dev_version ) { |
| 129 | 129 | |
| 130 | 130 | $screen->set_help_sidebar( |
| 131 | 131 | '<p><strong>' . __( 'For more information:' ) . '</strong></p>' . |
| 132 | | '<p>' . __( '<a href="https://wordpress.org/support/article/dashboard-screen/">Documentation on Dashboard</a>' ) . '</p>' . |
| 133 | | '<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>' . |
| | 132 | '<p>' . __( '<a href="https://wordpress.org/support/article/dashboard-screen/" target="_blank">Documentation on Dashboard</a>' ) . '</p>' . |
| | 133 | '<p>' . __( '<a href="https://wordpress.org/support/" target="_blank">Support</a>' ) . '</p>' . |
| 134 | 134 | '<p>' . $wp_version_text . '</p>' |
| 135 | 135 | ); |
| 136 | 136 | |
-
diff --git a/src/wp-admin/admin-footer.php b/src/wp-admin/admin-footer.php
index 9e683d0b11..30dcee3d78 100644
|
a
|
b
|
global $hook_suffix; |
| 34 | 34 | <?php |
| 35 | 35 | $text = sprintf( |
| 36 | 36 | /* translators: %s: https://wordpress.org/ */ |
| 37 | | __( 'Thank you for creating with <a href="%s">WordPress</a>.' ), |
| | 37 | __( 'Thank you for creating with <a href="%s" target="_blank">WordPress</a>.' ), |
| 38 | 38 | __( 'https://wordpress.org/' ) |
| 39 | 39 | ); |
| 40 | 40 | |
-
diff --git a/src/wp-admin/comment.php b/src/wp-admin/comment.php
index c2e452bfe0..cc628414c6 100644
|
a
|
b
|
switch ( $action ) { |
| 68 | 68 | |
| 69 | 69 | get_current_screen()->set_help_sidebar( |
| 70 | 70 | '<p><strong>' . __( 'For more information:' ) . '</strong></p>' . |
| 71 | | '<p>' . __( '<a href="https://wordpress.org/support/article/comments-screen/">Documentation on Comments</a>' ) . '</p>' . |
| 72 | | '<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>' |
| | 71 | '<p>' . __( '<a href="https://wordpress.org/support/article/comments-screen/" target="_blank">Documentation on Comments</a>' ) . '</p>' . |
| | 72 | '<p>' . __( '<a href="https://wordpress.org/support/" target="_blank">Support</a>' ) . '</p>' |
| 73 | 73 | ); |
| 74 | 74 | |
| 75 | 75 | wp_enqueue_script( 'comment' ); |
-
diff --git a/src/wp-admin/edit-comments.php b/src/wp-admin/edit-comments.php
index ec6abc1972..51a2585d69 100644
|
a
|
b
|
get_current_screen()->add_help_tab( |
| 207 | 207 | |
| 208 | 208 | get_current_screen()->set_help_sidebar( |
| 209 | 209 | '<p><strong>' . __( 'For more information:' ) . '</strong></p>' . |
| 210 | | '<p>' . __( '<a href="https://wordpress.org/support/article/comments-screen/">Documentation on Comments</a>' ) . '</p>' . |
| 211 | | '<p>' . __( '<a href="https://wordpress.org/support/article/comment-spam/">Documentation on Comment Spam</a>' ) . '</p>' . |
| 212 | | '<p>' . __( '<a href="https://wordpress.org/support/article/keyboard-shortcuts/#keyboard-shortcuts-for-comments">Documentation on Keyboard Shortcuts</a>' ) . '</p>' . |
| 213 | | '<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>' |
| | 210 | '<p>' . __( '<a href="https://wordpress.org/support/article/comments-screen/" target="_blank">Documentation on Comments</a>' ) . '</p>' . |
| | 211 | '<p>' . __( '<a href="https://wordpress.org/support/article/comment-spam/" target="_blank">Documentation on Comment Spam</a>' ) . '</p>' . |
| | 212 | '<p>' . __( '<a href="https://wordpress.org/support/article/keyboard-shortcuts/#keyboard-shortcuts-for-comments" target="_blank">Documentation on Keyboard Shortcuts</a>' ) . '</p>' . |
| | 213 | '<p>' . __( '<a href="https://wordpress.org/support/" target="_blank">Support</a>' ) . '</p>' |
| 214 | 214 | ); |
| 215 | 215 | |
| 216 | 216 | get_current_screen()->set_screen_reader_content( |
-
diff --git a/src/wp-admin/edit-tags.php b/src/wp-admin/edit-tags.php
index 9812d97c76..4fec51a1ae 100644
|
a
|
b
|
if ( 'category' === $taxonomy || 'link_category' === $taxonomy || 'post_tag' === |
| 302 | 302 | $help = '<p><strong>' . __( 'For more information:' ) . '</strong></p>'; |
| 303 | 303 | |
| 304 | 304 | if ( 'category' === $taxonomy ) { |
| 305 | | $help .= '<p>' . __( '<a href="https://wordpress.org/support/article/posts-categories-screen/">Documentation on Categories</a>' ) . '</p>'; |
| | 305 | $help .= '<p>' . __( '<a href="https://wordpress.org/support/article/posts-categories-screen/" target="_blank">Documentation on Categories</a>' ) . '</p>'; |
| 306 | 306 | } elseif ( 'link_category' === $taxonomy ) { |
| 307 | | $help .= '<p>' . __( '<a href="https://codex.wordpress.org/Links_Link_Categories_Screen">Documentation on Link Categories</a>' ) . '</p>'; |
| | 307 | $help .= '<p>' . __( '<a href="https://codex.wordpress.org/Links_Link_Categories_Screen" target="_blank">Documentation on Link Categories</a>' ) . '</p>'; |
| 308 | 308 | } else { |
| 309 | | $help .= '<p>' . __( '<a href="https://wordpress.org/support/article/posts-tags-screen/">Documentation on Tags</a>' ) . '</p>'; |
| | 309 | $help .= '<p>' . __( '<a href="https://wordpress.org/support/article/posts-tags-screen/" target="_blank">Documentation on Tags</a>' ) . '</p>'; |
| 310 | 310 | } |
| 311 | 311 | |
| 312 | | $help .= '<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>'; |
| | 312 | $help .= '<p>' . __( '<a href="https://wordpress.org/support/" target="_blank">Support</a>' ) . '</p>'; |
| 313 | 313 | |
| 314 | 314 | get_current_screen()->set_help_sidebar( $help ); |
| 315 | 315 | |
-
diff --git a/src/wp-admin/edit.php b/src/wp-admin/edit.php
index f56beabae8..d657bea6c3 100644
|
a
|
b
|
if ( 'post' === $post_type ) { |
| 294 | 294 | |
| 295 | 295 | get_current_screen()->set_help_sidebar( |
| 296 | 296 | '<p><strong>' . __( 'For more information:' ) . '</strong></p>' . |
| 297 | | '<p>' . __( '<a href="https://wordpress.org/support/article/posts-screen/">Documentation on Managing Posts</a>' ) . '</p>' . |
| 298 | | '<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>' |
| | 297 | '<p>' . __( '<a href="https://wordpress.org/support/article/posts-screen/" target="_blank">Documentation on Managing Posts</a>' ) . '</p>' . |
| | 298 | '<p>' . __( '<a href="https://wordpress.org/support/" target="_blank">Support</a>' ) . '</p>' |
| 299 | 299 | ); |
| 300 | 300 | |
| 301 | 301 | } elseif ( 'page' === $post_type ) { |
| … |
… |
if ( 'post' === $post_type ) { |
| 319 | 319 | |
| 320 | 320 | get_current_screen()->set_help_sidebar( |
| 321 | 321 | '<p><strong>' . __( 'For more information:' ) . '</strong></p>' . |
| 322 | | '<p>' . __( '<a href="https://wordpress.org/support/article/pages-screen/">Documentation on Managing Pages</a>' ) . '</p>' . |
| 323 | | '<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>' |
| | 322 | '<p>' . __( '<a href="https://wordpress.org/support/article/pages-screen/" target="_blank">Documentation on Managing Pages</a>' ) . '</p>' . |
| | 323 | '<p>' . __( '<a href="https://wordpress.org/support/" target="_blank">Support</a>' ) . '</p>' |
| 324 | 324 | ); |
| 325 | 325 | |
| 326 | 326 | } |
-
diff --git a/src/wp-admin/erase-personal-data.php b/src/wp-admin/erase-personal-data.php
index bbcc086288..86292ff88e 100644
|
a
|
b
|
get_current_screen()->add_help_tab( |
| 62 | 62 | |
| 63 | 63 | get_current_screen()->set_help_sidebar( |
| 64 | 64 | '<p><strong>' . __( 'For more information:' ) . '</strong></p>' . |
| 65 | | '<p>' . __( '<a href="https://wordpress.org/support/article/tools-erase-personal-data-screen/">Documentation on Erase Personal Data</a>' ) . '</p>' . |
| 66 | | '<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>' |
| | 65 | '<p>' . __( '<a href="https://wordpress.org/support/article/tools-erase-personal-data-screen/" target="_blank">Documentation on Erase Personal Data</a>' ) . '</p>' . |
| | 66 | '<p>' . __( '<a href="https://wordpress.org/support/" target="_blank">Support</a>' ) . '</p>' |
| 67 | 67 | ); |
| 68 | 68 | |
| 69 | 69 | // Handle list table actions. |
-
diff --git a/src/wp-admin/export-personal-data.php b/src/wp-admin/export-personal-data.php
index 6e44ce9c63..7056525ef8 100644
|
a
|
b
|
get_current_screen()->add_help_tab( |
| 62 | 62 | |
| 63 | 63 | get_current_screen()->set_help_sidebar( |
| 64 | 64 | '<p><strong>' . __( 'For more information:' ) . '</strong></p>' . |
| 65 | | '<p>' . __( '<a href="https://wordpress.org/support/article/tools-export-personal-data-screen/">Documentation on Export Personal Data</a>' ) . '</p>' . |
| 66 | | '<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>' |
| | 65 | '<p>' . __( '<a href="https://wordpress.org/support/article/tools-export-personal-data-screen/" target="_blank">Documentation on Export Personal Data</a>' ) . '</p>' . |
| | 66 | '<p>' . __( '<a href="https://wordpress.org/support/" target="_blank">Support</a>' ) . '</p>' |
| 67 | 67 | ); |
| 68 | 68 | |
| 69 | 69 | // Handle list table actions. |
-
diff --git a/src/wp-admin/export.php b/src/wp-admin/export.php
index e94a9a0e19..d141653369 100644
|
a
|
b
|
get_current_screen()->add_help_tab( |
| 56 | 56 | |
| 57 | 57 | get_current_screen()->set_help_sidebar( |
| 58 | 58 | '<p><strong>' . __( 'For more information:' ) . '</strong></p>' . |
| 59 | | '<p>' . __( '<a href="https://wordpress.org/support/article/tools-export-screen/">Documentation on Export</a>' ) . '</p>' . |
| 60 | | '<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>' |
| | 59 | '<p>' . __( '<a href="https://wordpress.org/support/article/tools-export-screen/" target="_blank">Documentation on Export</a>' ) . '</p>' . |
| | 60 | '<p>' . __( '<a href="https://wordpress.org/support/" target="_blank">Support</a>' ) . '</p>' |
| 61 | 61 | ); |
| 62 | 62 | |
| 63 | 63 | // If the 'download' URL parameter is set, a WXR export file is baked and returned. |
-
diff --git a/src/wp-admin/import.php b/src/wp-admin/import.php
index fe911f86c9..313b3af2a3 100644
|
a
|
b
|
get_current_screen()->add_help_tab( |
| 29 | 29 | |
| 30 | 30 | get_current_screen()->set_help_sidebar( |
| 31 | 31 | '<p><strong>' . __( 'For more information:' ) . '</strong></p>' . |
| 32 | | '<p>' . __( '<a href="https://wordpress.org/support/article/tools-import-screen/">Documentation on Import</a>' ) . '</p>' . |
| 33 | | '<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>' |
| | 32 | '<p>' . __( '<a href="https://wordpress.org/support/article/tools-import-screen/" target="_blank">Documentation on Import</a>' ) . '</p>' . |
| | 33 | '<p>' . __( '<a href="https://wordpress.org/support/" target="_blank">Support</a>' ) . '</p>' |
| 34 | 34 | ); |
| 35 | 35 | |
| 36 | 36 | if ( current_user_can( 'install_plugins' ) ) { |
-
diff --git a/src/wp-admin/includes/class-wp-plugins-list-table.php b/src/wp-admin/includes/class-wp-plugins-list-table.php
index 86bc2531e8..28f61f43e7 100644
|
a
|
b
|
class WP_Plugins_List_Table extends WP_List_Table { |
| 1054 | 1054 | if ( ! empty( $plugin_data['Author'] ) ) { |
| 1055 | 1055 | $author = $plugin_data['Author']; |
| 1056 | 1056 | if ( ! empty( $plugin_data['AuthorURI'] ) ) { |
| 1057 | | $author = '<a href="' . $plugin_data['AuthorURI'] . '">' . $plugin_data['Author'] . '</a>'; |
| | 1057 | $author = '<a href="' . $plugin_data['AuthorURI'] . '" target="_blank">' . $plugin_data['Author'] . '</a>'; |
| 1058 | 1058 | } |
| 1059 | 1059 | /* translators: %s: Plugin author name. */ |
| 1060 | 1060 | $plugin_meta[] = sprintf( __( 'By %s' ), $author ); |
-
diff --git a/src/wp-admin/includes/dashboard.php b/src/wp-admin/includes/dashboard.php
index 1754832ac5..67bf812629 100644
|
a
|
b
|
function wp_print_community_events_templates() { |
| 1445 | 1445 | <div class="event-info"> |
| 1446 | 1446 | <div class="dashicons event-icon" aria-hidden="true"></div> |
| 1447 | 1447 | <div class="event-info-inner"> |
| 1448 | | <a class="event-title" href="{{ event.url }}">{{ event.title }}</a> |
| | 1448 | <a class="event-title" href="{{ event.url }}" target="_blank">{{ event.title }}</a> |
| 1449 | 1449 | <span class="event-city">{{ event.location.location }}</span> |
| 1450 | 1450 | </div> |
| 1451 | 1451 | </div> |
| … |
… |
function wp_print_community_events_templates() { |
| 1466 | 1466 | <?php |
| 1467 | 1467 | printf( |
| 1468 | 1468 | /* translators: %s: Localized meetup organization documentation URL. */ |
| 1469 | | __( 'Want more events? <a href="%s">Help organize the next one</a>!' ), |
| | 1469 | __( 'Want more events? <a href="%s" target="_blank">Help organize the next one</a>!' ), |
| 1470 | 1470 | __( 'https://make.wordpress.org/community/organize-event-landing-page/' ) |
| 1471 | 1471 | ); |
| 1472 | 1472 | ?> |
| … |
… |
function wp_print_community_events_templates() { |
| 1481 | 1481 | <?php |
| 1482 | 1482 | printf( |
| 1483 | 1483 | /* translators: 1: The city the user searched for, 2: Meetup organization documentation URL. */ |
| 1484 | | __( 'There are no events scheduled near %1$s at the moment. Would you like to <a href="%2$s">organize a WordPress event</a>?' ), |
| | 1484 | __( 'There are no events scheduled near %1$s at the moment. Would you like to <a href="%2$s" target="_blank">organize a WordPress event</a>?' ), |
| 1485 | 1485 | '{{ data.location.description }}', |
| 1486 | 1486 | __( 'https://make.wordpress.org/community/handbook/meetup-organizer/welcome/' ) |
| 1487 | 1487 | ); |
| … |
… |
function wp_print_community_events_templates() { |
| 1491 | 1491 | <?php |
| 1492 | 1492 | printf( |
| 1493 | 1493 | /* translators: %s: Meetup organization documentation URL. */ |
| 1494 | | __( 'There are no events scheduled near you at the moment. Would you like to <a href="%s">organize a WordPress event</a>?' ), |
| | 1494 | __( 'There are no events scheduled near you at the moment. Would you like to <a href="%s" target="_blank">organize a WordPress event</a>?' ), |
| 1495 | 1495 | __( 'https://make.wordpress.org/community/handbook/meetup-organizer/welcome/' ) |
| 1496 | 1496 | ); |
| 1497 | 1497 | ?> |
-
diff --git a/src/wp-admin/includes/file.php b/src/wp-admin/includes/file.php
index 774f3b0151..44d73fa158 100644
|
a
|
b
|
function wp_print_file_editor_templates() { |
| 322 | 322 | <?php |
| 323 | 323 | printf( |
| 324 | 324 | /* translators: %s: Documentation URL. */ |
| 325 | | __( 'You need to make this file writable before you can save your changes. See <a href="%s">Changing File Permissions</a> for more information.' ), |
| | 325 | __( 'You need to make this file writable before you can save your changes. See <a href="%s" target="_blank">Changing File Permissions</a> for more information.' ), |
| 326 | 326 | __( 'https://wordpress.org/support/article/changing-file-permissions/' ) |
| 327 | 327 | ); |
| 328 | 328 | ?> |
-
diff --git a/src/wp-admin/media-new.php b/src/wp-admin/media-new.php
index 94fa50ff3d..f78fbc29c8 100644
|
a
|
b
|
get_current_screen()->add_help_tab( |
| 58 | 58 | ); |
| 59 | 59 | get_current_screen()->set_help_sidebar( |
| 60 | 60 | '<p><strong>' . __( 'For more information:' ) . '</strong></p>' . |
| 61 | | '<p>' . __( '<a href="https://wordpress.org/support/article/media-add-new-screen/">Documentation on Uploading Media Files</a>' ) . '</p>' . |
| 62 | | '<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>' |
| | 61 | '<p>' . __( '<a href="https://wordpress.org/support/article/media-add-new-screen/" target="_blank">Documentation on Uploading Media Files</a>' ) . '</p>' . |
| | 62 | '<p>' . __( '<a href="https://wordpress.org/support/" target="_blank">Support</a>' ) . '</p>' |
| 63 | 63 | ); |
| 64 | 64 | |
| 65 | 65 | require_once ABSPATH . 'wp-admin/admin-header.php'; |
-
diff --git a/src/wp-admin/options-discussion.php b/src/wp-admin/options-discussion.php
index f34be054de..810e741230 100644
|
a
|
b
|
get_current_screen()->add_help_tab( |
| 29 | 29 | |
| 30 | 30 | get_current_screen()->set_help_sidebar( |
| 31 | 31 | '<p><strong>' . __( 'For more information:' ) . '</strong></p>' . |
| 32 | | '<p>' . __( '<a href="https://wordpress.org/support/article/settings-discussion-screen/">Documentation on Discussion Settings</a>' ) . '</p>' . |
| 33 | | '<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>' |
| | 32 | '<p>' . __( '<a href="https://wordpress.org/support/article/settings-discussion-screen/" target="_blank">Documentation on Discussion Settings</a>' ) . '</p>' . |
| | 33 | '<p>' . __( '<a href="https://wordpress.org/support/" target="_blank">Support</a>' ) . '</p>' |
| 34 | 34 | ); |
| 35 | 35 | |
| 36 | 36 | require_once ABSPATH . 'wp-admin/admin-header.php'; |
-
diff --git a/src/wp-admin/options-general.php b/src/wp-admin/options-general.php
index e624217a53..29970efc5b 100644
|
a
|
b
|
get_current_screen()->add_help_tab( |
| 46 | 46 | |
| 47 | 47 | get_current_screen()->set_help_sidebar( |
| 48 | 48 | '<p><strong>' . __( 'For more information:' ) . '</strong></p>' . |
| 49 | | '<p>' . __( '<a href="https://wordpress.org/support/article/settings-general-screen/">Documentation on General Settings</a>' ) . '</p>' . |
| 50 | | '<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>' |
| | 49 | '<p>' . __( '<a href="https://wordpress.org/support/article/settings-general-screen/" target="_blank">Documentation on General Settings</a>' ) . '</p>' . |
| | 50 | '<p>' . __( '<a href="https://wordpress.org/support/" target="_blank">Support</a>' ) . '</p>' |
| 51 | 51 | ); |
| 52 | 52 | |
| 53 | 53 | require_once ABSPATH . 'wp-admin/admin-header.php'; |
| … |
… |
if ( ! is_multisite() ) { |
| 105 | 105 | <?php |
| 106 | 106 | printf( |
| 107 | 107 | /* translators: %s: Documentation URL. */ |
| 108 | | __( 'Enter the same address here unless you <a href="%s">want your site home page to be different from your WordPress installation directory</a>.' ), |
| | 108 | __( 'Enter the same address here unless you <a href="%s" target="_blank">want your site home page to be different from your WordPress installation directory</a>.' ), |
| 109 | 109 | __( 'https://wordpress.org/support/article/giving-wordpress-its-own-directory/' ) |
| 110 | 110 | ); |
| 111 | 111 | ?> |
| … |
… |
foreach ( $time_formats as $format ) { |
| 410 | 410 | '<p><strong>' . __( 'Preview:' ) . '</strong> <span class="example">' . date_i18n( get_option( 'time_format' ) ) . '</span>' . |
| 411 | 411 | "<span class='spinner'></span>\n" . '</p>'; |
| 412 | 412 | |
| 413 | | echo "\t<p class='date-time-doc'>" . __( '<a href="https://wordpress.org/support/article/formatting-date-and-time/">Documentation on date and time formatting</a>.' ) . "</p>\n"; |
| | 413 | echo "\t<p class='date-time-doc'>" . __( '<a href="https://wordpress.org/support/article/formatting-date-and-time/" target="_blank">Documentation on date and time formatting</a>.' ) . "</p>\n"; |
| 414 | 414 | ?> |
| 415 | 415 | </fieldset> |
| 416 | 416 | </td> |
-
diff --git a/src/wp-admin/options-media.php b/src/wp-admin/options-media.php
index 54c7174d96..a62f9cae5b 100644
|
a
|
b
|
get_current_screen()->add_help_tab( |
| 38 | 38 | |
| 39 | 39 | get_current_screen()->set_help_sidebar( |
| 40 | 40 | '<p><strong>' . __( 'For more information:' ) . '</strong></p>' . |
| 41 | | '<p>' . __( '<a href="https://wordpress.org/support/article/settings-media-screen/">Documentation on Media Settings</a>' ) . '</p>' . |
| 42 | | '<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>' |
| | 41 | '<p>' . __( '<a href="https://wordpress.org/support/article/settings-media-screen/" target="_blank">Documentation on Media Settings</a>' ) . '</p>' . |
| | 42 | '<p>' . __( '<a href="https://wordpress.org/support/" target="_blank">Support</a>' ) . '</p>' |
| 43 | 43 | ); |
| 44 | 44 | |
| 45 | 45 | require_once ABSPATH . 'wp-admin/admin-header.php'; |
-
diff --git a/src/wp-admin/options-permalink.php b/src/wp-admin/options-permalink.php
index 1c3d60a801..c3acc69576 100644
|
a
|
b
|
get_current_screen()->add_help_tab( |
| 57 | 57 | ); |
| 58 | 58 | |
| 59 | 59 | $help_sidebar_content = '<p><strong>' . __( 'For more information:' ) . '</strong></p>' . |
| 60 | | '<p>' . __( '<a href="https://wordpress.org/support/article/settings-permalinks-screen/">Documentation on Permalinks Settings</a>' ) . '</p>' . |
| 61 | | '<p>' . __( '<a href="https://wordpress.org/support/article/using-permalinks/">Documentation on Using Permalinks</a>' ) . '</p>'; |
| | 60 | '<p>' . __( '<a href="https://wordpress.org/support/article/settings-permalinks-screen/" target="_blank">Documentation on Permalinks Settings</a>' ) . '</p>' . |
| | 61 | '<p>' . __( '<a href="https://wordpress.org/support/article/using-permalinks/" target="_blank">Documentation on Using Permalinks</a>' ) . '</p>'; |
| 62 | 62 | |
| 63 | 63 | if ( $is_nginx ) { |
| 64 | | $help_sidebar_content .= '<p>' . __( '<a href="https://wordpress.org/support/article/nginx/">Documentation on Nginx configuration</a>.' ) . '</p>'; |
| | 64 | $help_sidebar_content .= '<p>' . __( '<a href="https://wordpress.org/support/article/nginx/" target="_blank">Documentation on Nginx configuration</a>.' ) . '</p>'; |
| 65 | 65 | } |
| 66 | 66 | |
| 67 | | $help_sidebar_content .= '<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>'; |
| | 67 | $help_sidebar_content .= '<p>' . __( '<a href="https://wordpress.org/support/" target="_blank">Support</a>' ) . '</p>'; |
| 68 | 68 | |
| 69 | 69 | get_current_screen()->set_help_sidebar( $help_sidebar_content ); |
| 70 | 70 | unset( $help_sidebar_content ); |
| … |
… |
require_once ABSPATH . 'wp-admin/admin-header.php'; |
| 223 | 223 | <?php |
| 224 | 224 | printf( |
| 225 | 225 | /* translators: %s: Documentation URL. */ |
| 226 | | __( 'WordPress offers you the ability to create a custom URL structure for your permalinks and archives. Custom URL structures can improve the aesthetics, usability, and forward-compatibility of your links. A <a href="%s">number of tags are available</a>, and here are some examples to get you started.' ), |
| | 226 | __( 'WordPress offers you the ability to create a custom URL structure for your permalinks and archives. Custom URL structures can improve the aesthetics, usability, and forward-compatibility of your links. A <a href="%s" target="_blank">number of tags are available</a>, and here are some examples to get you started.' ), |
| 227 | 227 | __( 'https://wordpress.org/support/article/using-permalinks/' ) |
| 228 | 228 | ); |
| 229 | 229 | ?> |
| … |
… |
printf( |
| 459 | 459 | <?php |
| 460 | 460 | printf( |
| 461 | 461 | /* translators: 1: web.config, 2: Documentation URL, 3: Ctrl + A, 4: ⌘ + A, 5: Element code. */ |
| 462 | | __( '<strong>Error:</strong> Your %1$s file is not <a href="%2$s">writable</a>, so updating it automatically was not possible. This is the URL rewrite rule you should have in your %1$s file. Click in the field and press %3$s (or %4$s on Mac) to select all. Then insert this rule inside of the %5$s element in %1$s file.' ), |
| | 462 | __( '<strong>Error:</strong> Your %1$s file is not <a href="%2$s" target="_blank">writable</a>, so updating it automatically was not possible. This is the URL rewrite rule you should have in your %1$s file. Click in the field and press %3$s (or %4$s on Mac) to select all. Then insert this rule inside of the %5$s element in %1$s file.' ), |
| 463 | 463 | '<code>web.config</code>', |
| 464 | 464 | __( 'https://wordpress.org/support/article/changing-file-permissions/' ), |
| 465 | 465 | '<kbd>Ctrl + A</kbd>', |
| … |
… |
printf( |
| 492 | 492 | <?php |
| 493 | 493 | printf( |
| 494 | 494 | /* translators: 1: Documentation URL, 2: web.config, 3: Ctrl + A, 4: ⌘ + A */ |
| 495 | | __( '<strong>Error:</strong> The root directory of your site is not <a href="%1$s">writable</a>, so creating a file automatically was not possible. This is the URL rewrite rule you should have in your %2$s file. Create a new file called %2$s in the root directory of your site. Click in the field and press %3$s (or %4$s on Mac) to select all. Then insert this code into the %2$s file.' ), |
| | 495 | __( '<strong>Error:</strong> The root directory of your site is not <a href="%1$s" target="_blank">writable</a>, so creating a file automatically was not possible. This is the URL rewrite rule you should have in your %2$s file. Create a new file called %2$s in the root directory of your site. Click in the field and press %3$s (or %4$s on Mac) to select all. Then insert this code into the %2$s file.' ), |
| 496 | 496 | __( 'https://wordpress.org/support/article/changing-file-permissions/' ), |
| 497 | 497 | '<code>web.config</code>', |
| 498 | 498 | '<kbd>Ctrl + A</kbd>', |
| … |
… |
printf( |
| 527 | 527 | <?php |
| 528 | 528 | printf( |
| 529 | 529 | /* translators: 1: .htaccess, 2: Documentation URL, 3: Ctrl + A, 4: ⌘ + A */ |
| 530 | | __( '<strong>Error:</strong> Your %1$s file is not <a href="%2$s">writable</a>, so updating it automatically was not possible. These are the mod_rewrite rules you should have in your %1$s file. Click in the field and press %3$s (or %4$s on Mac) to select all.' ), |
| | 530 | __( '<strong>Error:</strong> Your %1$s file is not <a href="%2$s" target="_blank">writable</a>, so updating it automatically was not possible. These are the mod_rewrite rules you should have in your %1$s file. Click in the field and press %3$s (or %4$s on Mac) to select all.' ), |
| 531 | 531 | '<code>.htaccess</code>', |
| 532 | 532 | __( 'https://wordpress.org/support/article/changing-file-permissions/' ), |
| 533 | 533 | '<kbd>Ctrl + A</kbd>', |
-
diff --git a/src/wp-admin/options-privacy.php b/src/wp-admin/options-privacy.php
index b477cc40b1..8dd767a8a6 100644
|
a
|
b
|
get_current_screen()->add_help_tab( |
| 44 | 44 | |
| 45 | 45 | get_current_screen()->set_help_sidebar( |
| 46 | 46 | '<p><strong>' . __( 'For more information:' ) . '</strong></p>' . |
| 47 | | '<p>' . __( '<a href="https://wordpress.org/support/article/settings-privacy-screen/">Documentation on Privacy Settings</a>' ) . '</p>' |
| | 47 | '<p>' . __( '<a href="https://wordpress.org/support/article/settings-privacy-screen/" target="_blank">Documentation on Privacy Settings</a>' ) . '</p>' |
| 48 | 48 | ); |
| 49 | 49 | |
| 50 | 50 | if ( ! empty( $action ) ) { |
-
diff --git a/src/wp-admin/options-reading.php b/src/wp-admin/options-reading.php
index b0bb61f569..43bc9d9954 100644
|
a
|
b
|
get_current_screen()->add_help_tab( |
| 31 | 31 | ) . '</p>' . |
| 32 | 32 | '<p>' . sprintf( |
| 33 | 33 | /* translators: %s: Documentation URL. */ |
| 34 | | __( 'You can also control the display of your content in RSS feeds, including the maximum number of posts to display and whether to show full text or an excerpt. <a href="%s">Learn more about feeds</a>.' ), |
| | 34 | __( 'You can also control the display of your content in RSS feeds, including the maximum number of posts to display and whether to show full text or an excerpt. <a href="%s" target="_blank">Learn more about feeds</a>.' ), |
| 35 | 35 | __( 'https://wordpress.org/support/article/wordpress-feeds/' ) |
| 36 | 36 | ) . '</p>' . |
| 37 | 37 | '<p>' . __( 'You must click the Save Changes button at the bottom of the screen for new settings to take effect.' ) . '</p>', |
| … |
… |
get_current_screen()->add_help_tab( |
| 50 | 50 | |
| 51 | 51 | get_current_screen()->set_help_sidebar( |
| 52 | 52 | '<p><strong>' . __( 'For more information:' ) . '</strong></p>' . |
| 53 | | '<p>' . __( '<a href="https://wordpress.org/support/article/settings-reading-screen/">Documentation on Reading Settings</a>' ) . '</p>' . |
| 54 | | '<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>' |
| | 53 | '<p>' . __( '<a href="https://wordpress.org/support/article/settings-reading-screen/" target="_blank">Documentation on Reading Settings</a>' ) . '</p>' . |
| | 54 | '<p>' . __( '<a href="https://wordpress.org/support/" target="_blank">Support</a>' ) . '</p>' |
| 55 | 55 | ); |
| 56 | 56 | |
| 57 | 57 | require_once ABSPATH . 'wp-admin/admin-header.php'; |
| … |
… |
else : |
| 180 | 180 | <?php |
| 181 | 181 | printf( |
| 182 | 182 | /* translators: %s: Documentation URL. */ |
| 183 | | __( 'Your theme determines how content is displayed in browsers. <a href="%s">Learn more about feeds</a>.' ), |
| | 183 | __( 'Your theme determines how content is displayed in browsers. <a href="%s" target="_blank">Learn more about feeds</a>.' ), |
| 184 | 184 | __( 'https://wordpress.org/support/article/wordpress-feeds/' ) |
| 185 | 185 | ); |
| 186 | 186 | ?> |
-
diff --git a/src/wp-admin/options-writing.php b/src/wp-admin/options-writing.php
index 45b112672b..33356d840d 100644
|
a
|
b
|
if ( apply_filters( 'enable_update_services_configuration', true ) ) { |
| 50 | 50 | |
| 51 | 51 | get_current_screen()->set_help_sidebar( |
| 52 | 52 | '<p><strong>' . __( 'For more information:' ) . '</strong></p>' . |
| 53 | | '<p>' . __( '<a href="https://wordpress.org/support/article/settings-writing-screen/">Documentation on Writing Settings</a>' ) . '</p>' . |
| 54 | | '<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>' |
| | 53 | '<p>' . __( '<a href="https://wordpress.org/support/article/settings-writing-screen/" target="_blank">Documentation on Writing Settings</a>' ) . '</p>' . |
| | 54 | '<p>' . __( '<a href="https://wordpress.org/support/" target="_blank">Support</a>' ) . '</p>' |
| 55 | 55 | ); |
| 56 | 56 | |
| 57 | 57 | require_once ABSPATH . 'wp-admin/admin-header.php'; |
| … |
… |
if ( apply_filters( 'enable_update_services_configuration', true ) ) { |
| 212 | 212 | <?php |
| 213 | 213 | printf( |
| 214 | 214 | /* translators: %s: Documentation URL. */ |
| 215 | | __( 'When you publish a new post, WordPress automatically notifies the following site update services. For more about this, see <a href="%s">Update Services</a> on the Codex. Separate multiple service URLs with line breaks.' ), |
| | 215 | __( 'When you publish a new post, WordPress automatically notifies the following site update services. For more about this, see <a href="%s" target="_blank">Update Services</a> on the Codex. Separate multiple service URLs with line breaks.' ), |
| 216 | 216 | __( 'https://wordpress.org/support/article/update-services/' ) |
| 217 | 217 | ); |
| 218 | 218 | ?> |
| … |
… |
if ( apply_filters( 'enable_update_services_configuration', true ) ) { |
| 226 | 226 | <?php |
| 227 | 227 | printf( |
| 228 | 228 | /* translators: 1: Documentation URL, 2: URL to Reading Settings screen. */ |
| 229 | | __( 'WordPress is not notifying any <a href="%1$s">Update Services</a> because of your site’s <a href="%2$s">visibility settings</a>.' ), |
| | 229 | __( 'WordPress is not notifying any <a href="%1$s" target="_blank">Update Services</a> because of your site’s <a href="%2$s">visibility settings</a>.' ), |
| 230 | 230 | __( 'https://wordpress.org/support/article/update-services/' ), |
| 231 | 231 | 'options-reading.php' |
| 232 | 232 | ); |
-
diff --git a/src/wp-admin/plugin-editor.php b/src/wp-admin/plugin-editor.php
index e6804c671b..28d0682b9e 100644
|
a
|
b
|
get_current_screen()->add_help_tab( |
| 140 | 140 | |
| 141 | 141 | get_current_screen()->set_help_sidebar( |
| 142 | 142 | '<p><strong>' . __( 'For more information:' ) . '</strong></p>' . |
| 143 | | '<p>' . __( '<a href="https://wordpress.org/support/article/plugins-editor-screen/">Documentation on Editing Plugins</a>' ) . '</p>' . |
| 144 | | '<p>' . __( '<a href="https://developer.wordpress.org/plugins/">Documentation on Writing Plugins</a>' ) . '</p>' . |
| 145 | | '<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>' |
| | 143 | '<p>' . __( '<a href="https://wordpress.org/support/article/plugins-editor-screen/" target="_blank">Documentation on Editing Plugins</a>' ) . '</p>' . |
| | 144 | '<p>' . __( '<a href="https://developer.wordpress.org/plugins/" target="_blank">Documentation on Writing Plugins</a>' ) . '</p>' . |
| | 145 | '<p>' . __( '<a href="https://wordpress.org/support/" target="_blank">Support</a>' ) . '</p>' |
| 146 | 146 | ); |
| 147 | 147 | |
| 148 | 148 | $settings = array( |
| … |
… |
$content = esc_textarea( $content ); |
| 295 | 295 | <?php |
| 296 | 296 | printf( |
| 297 | 297 | /* translators: %s: Documentation URL. */ |
| 298 | | __( 'You need to make this file writable before you can save your changes. See <a href="%s">Changing File Permissions</a> for more information.' ), |
| | 298 | __( 'You need to make this file writable before you can save your changes. See <a href="%s" target="_blank">Changing File Permissions</a> for more information.' ), |
| 299 | 299 | __( 'https://wordpress.org/support/article/changing-file-permissions/' ) |
| 300 | 300 | ); |
| 301 | 301 | ?> |
-
diff --git a/src/wp-admin/plugins.php b/src/wp-admin/plugins.php
index bc7774b197..d67ddb1600 100644
|
a
|
b
|
get_current_screen()->add_help_tab( |
| 547 | 547 | '<p>' . __( 'The search for installed plugins will search for terms in their name, description, or author.' ) . ' <span id="live-search-desc" class="hide-if-no-js">' . __( 'The search results will be updated as you type.' ) . '</span></p>' . |
| 548 | 548 | '<p>' . sprintf( |
| 549 | 549 | /* translators: %s: WordPress Plugin Directory URL. */ |
| 550 | | __( 'If you would like to see more plugins to choose from, click on the “Add New” button and you will be able to browse or search for additional plugins from the <a href="%s">WordPress Plugin Directory</a>. Plugins in the WordPress Plugin Directory are designed and developed by third parties, and are compatible with the license WordPress uses. Oh, and they’re free!' ), |
| | 550 | __( 'If you would like to see more plugins to choose from, click on the “Add New” button and you will be able to browse or search for additional plugins from the <a href="%s" target="_blank">WordPress Plugin Directory</a>. Plugins in the WordPress Plugin Directory are designed and developed by third parties, and are compatible with the license WordPress uses. Oh, and they’re free!' ), |
| 551 | 551 | __( 'https://wordpress.org/plugins/' ) |
| 552 | 552 | ) . '</p>', |
| 553 | 553 | ) |
| … |
… |
if ( current_user_can( 'update_plugins' ) && wp_is_auto_update_enabled_for_type( |
| 580 | 580 | ) |
| 581 | 581 | ); |
| 582 | 582 | |
| 583 | | $help_sidebar_autoupdates = '<p>' . __( '<a href="https://wordpress.org/support/article/plugins-themes-auto-updates/">Documentation on Auto-updates</a>' ) . '</p>'; |
| | 583 | $help_sidebar_autoupdates = '<p>' . __( '<a href="https://wordpress.org/support/article/plugins-themes-auto-updates/" target="_blank">Documentation on Auto-updates</a>' ) . '</p>'; |
| 584 | 584 | } |
| 585 | 585 | |
| 586 | 586 | get_current_screen()->set_help_sidebar( |
| 587 | 587 | '<p><strong>' . __( 'For more information:' ) . '</strong></p>' . |
| 588 | | '<p>' . __( '<a href="https://wordpress.org/support/article/managing-plugins/">Documentation on Managing Plugins</a>' ) . '</p>' . |
| | 588 | '<p>' . __( '<a href="https://wordpress.org/support/article/managing-plugins/" target="_blank">Documentation on Managing Plugins</a>' ) . '</p>' . |
| 589 | 589 | $help_sidebar_autoupdates . |
| 590 | | '<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>' |
| | 590 | '<p>' . __( '<a href="https://wordpress.org/support/" target="_blank">Support</a>' ) . '</p>' |
| 591 | 591 | ); |
| 592 | 592 | |
| 593 | 593 | get_current_screen()->set_screen_reader_content( |
-
diff --git a/src/wp-admin/setup-config.php b/src/wp-admin/setup-config.php
index 30a1b79502..b6c4071f49 100644
|
a
|
b
|
if ( ! /iPad|iPod|iPhone/.test( navigator.userAgent ) ) { |
| 469 | 469 | if ( ! empty( $wp_config_perms ) && ! is_writable( $path_to_wp_config ) ) { |
| 470 | 470 | $error_message = sprintf( |
| 471 | 471 | /* translators: 1: wp-config.php, 2: Documentation URL. */ |
| 472 | | __( 'You need to make the file %1$s writable before you can save your changes. See <a href="%2$s">Changing File Permissions</a> for more information.' ), |
| | 472 | __( 'You need to make the file %1$s writable before you can save your changes. See <a href="%2$s" target="_blank">Changing File Permissions</a> for more information.' ), |
| 473 | 473 | '<code>wp-config.php</code>', |
| 474 | 474 | __( 'https://wordpress.org/support/article/changing-file-permissions/' ) |
| 475 | 475 | ); |
-
diff --git a/src/wp-admin/site-health.php b/src/wp-admin/site-health.php
index 5c471fe4d5..070c937315 100644
|
a
|
b
|
get_current_screen()->add_help_tab( |
| 87 | 87 | |
| 88 | 88 | get_current_screen()->set_help_sidebar( |
| 89 | 89 | '<p><strong>' . __( 'For more information:' ) . '</strong></p>' . |
| 90 | | '<p>' . __( '<a href="https://wordpress.org/support/article/site-health-screen/">Documentation on Site Health tool</a>' ) . '</p>' |
| | 90 | '<p>' . __( '<a href="https://wordpress.org/support/article/site-health-screen/" target="_blank">Documentation on Site Health tool</a>' ) . '</p>' |
| 91 | 91 | ); |
| 92 | 92 | |
| 93 | 93 | // Start by checking if this is a special request checking for the existence of certain filters. |
-
diff --git a/src/wp-admin/theme-editor.php b/src/wp-admin/theme-editor.php
index cd37763d15..68fa83f53f 100644
|
a
|
b
|
get_current_screen()->add_help_tab( |
| 40 | 40 | '<p>' . __( '<strong>Advice:</strong> Think very carefully about your site crashing if you are live-editing the theme currently in use.' ) . '</p>' . |
| 41 | 41 | '<p>' . sprintf( |
| 42 | 42 | /* translators: %s: Link to documentation on child themes. */ |
| 43 | | __( 'Upgrading to a newer version of the same theme will override changes made here. To avoid this, consider creating a <a href="%s">child theme</a> instead.' ), |
| | 43 | __( 'Upgrading to a newer version of the same theme will override changes made here. To avoid this, consider creating a <a href="%s" target="_blank">child theme</a> instead.' ), |
| 44 | 44 | __( 'https://developer.wordpress.org/themes/advanced-topics/child-themes/' ) |
| 45 | 45 | ) . '</p>' . |
| 46 | 46 | ( is_network_admin() ? '<p>' . __( 'Any edits to files from this screen will be reflected on all sites in the network.' ) . '</p>' : '' ), |
| … |
… |
get_current_screen()->add_help_tab( |
| 49 | 49 | |
| 50 | 50 | get_current_screen()->set_help_sidebar( |
| 51 | 51 | '<p><strong>' . __( 'For more information:' ) . '</strong></p>' . |
| 52 | | '<p>' . __( '<a href="https://developer.wordpress.org/themes/">Documentation on Theme Development</a>' ) . '</p>' . |
| 53 | | '<p>' . __( '<a href="https://wordpress.org/support/article/appearance-editor-screen/">Documentation on Editing Themes</a>' ) . '</p>' . |
| 54 | | '<p>' . __( '<a href="https://wordpress.org/support/article/editing-files/">Documentation on Editing Files</a>' ) . '</p>' . |
| 55 | | '<p>' . __( '<a href="https://developer.wordpress.org/themes/basics/template-tags/">Documentation on Template Tags</a>' ) . '</p>' . |
| 56 | | '<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>' |
| | 52 | '<p>' . __( '<a href="https://developer.wordpress.org/themes/" target="_blank">Documentation on Theme Development</a>' ) . '</p>' . |
| | 53 | '<p>' . __( '<a href="https://wordpress.org/support/article/appearance-editor-screen/" target="_blank">Documentation on Editing Themes</a>' ) . '</p>' . |
| | 54 | '<p>' . __( '<a href="https://wordpress.org/support/article/editing-files/" target="_blank">Documentation on Editing Files</a>' ) . '</p>' . |
| | 55 | '<p>' . __( '<a href="https://developer.wordpress.org/themes/basics/template-tags/" target="_blank">Documentation on Template Tags</a>' ) . '</p>' . |
| | 56 | '<p>' . __( '<a href="https://wordpress.org/support/" target="_blank">Support</a>' ) . '</p>' |
| 57 | 57 | ); |
| 58 | 58 | |
| 59 | 59 | wp_reset_vars( array( 'action', 'error', 'file', 'theme' ) ); |
| … |
… |
else : |
| 325 | 325 | <?php |
| 326 | 326 | printf( |
| 327 | 327 | /* translators: %s: Documentation URL. */ |
| 328 | | __( 'You need to make this file writable before you can save your changes. See <a href="%s">Changing File Permissions</a> for more information.' ), |
| | 328 | __( 'You need to make this file writable before you can save your changes. See <a href="%s" target="_blank">Changing File Permissions</a> for more information.' ), |
| 329 | 329 | __( 'https://wordpress.org/support/article/changing-file-permissions/' ) |
| 330 | 330 | ); |
| 331 | 331 | ?> |
| … |
… |
if ( ! in_array( 'theme_editor_notice', $dismissed_pointers, true ) ) : |
| 372 | 372 | echo '<p>'; |
| 373 | 373 | printf( |
| 374 | 374 | /* translators: %s: Link to documentation on child themes. */ |
| 375 | | __( 'If you need to tweak more than your theme’s CSS, you might want to try <a href="%s">making a child theme</a>.' ), |
| | 375 | __( 'If you need to tweak more than your theme’s CSS, you might want to try <a href="%s" target="_blank">making a child theme</a>.' ), |
| 376 | 376 | esc_url( __( 'https://developer.wordpress.org/themes/advanced-topics/child-themes/' ) ) |
| 377 | 377 | ); |
| 378 | 378 | echo '</p>'; |
-
diff --git a/src/wp-admin/themes.php b/src/wp-admin/themes.php
index e2b60f778f..6863cad57b 100644
|
a
|
b
|
if ( current_user_can( 'install_themes' ) ) { |
| 153 | 153 | } else { |
| 154 | 154 | $help_install = '<p>' . sprintf( |
| 155 | 155 | /* translators: %s: https://wordpress.org/themes/ */ |
| 156 | | __( 'If you would like to see more themes to choose from, click on the “Add New” button and you will be able to browse or search for additional themes from the <a href="%s">WordPress Theme Directory</a>. Themes in the WordPress Theme Directory are designed and developed by third parties, and are compatible with the license WordPress uses. Oh, and they’re free!' ), |
| | 156 | __( 'If you would like to see more themes to choose from, click on the “Add New” button and you will be able to browse or search for additional themes from the <a href="%s" target="_blank">WordPress Theme Directory</a>. Themes in the WordPress Theme Directory are designed and developed by third parties, and are compatible with the license WordPress uses. Oh, and they’re free!' ), |
| 157 | 157 | __( 'https://wordpress.org/themes/' ) |
| 158 | 158 | ) . '</p>'; |
| 159 | 159 | } |
| … |
… |
if ( current_user_can( 'update_themes' ) && wp_is_auto_update_enabled_for_type( |
| 199 | 199 | ) |
| 200 | 200 | ); |
| 201 | 201 | |
| 202 | | $help_sidebar_autoupdates = '<p>' . __( '<a href="https://wordpress.org/support/article/plugins-themes-auto-updates/">Documentation on Auto-updates</a>' ) . '</p>'; |
| | 202 | $help_sidebar_autoupdates = '<p>' . __( '<a href="https://wordpress.org/support/article/plugins-themes-auto-updates/" target="_blank">Documentation on Auto-updates</a>' ) . '</p>'; |
| 203 | 203 | } // End if 'update_themes' && 'wp_is_auto_update_enabled_for_type'. |
| 204 | 204 | |
| 205 | 205 | get_current_screen()->set_help_sidebar( |
| 206 | 206 | '<p><strong>' . __( 'For more information:' ) . '</strong></p>' . |
| 207 | | '<p>' . __( '<a href="https://wordpress.org/support/article/using-themes/">Documentation on Using Themes</a>' ) . '</p>' . |
| 208 | | '<p>' . __( '<a href="https://wordpress.org/support/article/appearance-themes-screen/">Documentation on Managing Themes</a>' ) . '</p>' . |
| | 207 | '<p>' . __( '<a href="https://wordpress.org/support/article/using-themes/" target="_blank">Documentation on Using Themes</a>' ) . '</p>' . |
| | 208 | '<p>' . __( '<a href="https://wordpress.org/support/article/appearance-themes-screen/" target="_blank">Documentation on Managing Themes</a>' ) . '</p>' . |
| 209 | 209 | $help_sidebar_autoupdates . |
| 210 | | '<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>' |
| | 210 | '<p>' . __( '<a href="https://wordpress.org/support/" target="_blank">Support</a>' ) . '</p>' |
| 211 | 211 | ); |
| 212 | 212 | |
| 213 | 213 | if ( current_user_can( 'switch_themes' ) ) { |
-
diff --git a/src/wp-admin/tools.php b/src/wp-admin/tools.php
index 8095e4726b..76b53209f3 100644
|
a
|
b
|
get_current_screen()->add_help_tab( |
| 53 | 53 | |
| 54 | 54 | get_current_screen()->set_help_sidebar( |
| 55 | 55 | '<p><strong>' . __( 'For more information:' ) . '</strong></p>' . |
| 56 | | '<p>' . __( '<a href="https://wordpress.org/support/article/tools-screen/">Documentation on Tools</a>' ) . '</p>' . |
| 57 | | '<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>' |
| | 56 | '<p>' . __( '<a href="https://wordpress.org/support/article/tools-screen/" target="_blank">Documentation on Tools</a>' ) . '</p>' . |
| | 57 | '<p>' . __( '<a href="https://wordpress.org/support/" target="_blank">Support</a>' ) . '</p>' |
| 58 | 58 | ); |
| 59 | 59 | |
| 60 | 60 | require_once ABSPATH . 'wp-admin/admin-header.php'; |
-
diff --git a/src/wp-admin/update-core.php b/src/wp-admin/update-core.php
index 2ac4648fcf..f92da2d91b 100644
|
a
|
b
|
function list_core_update( $update ) { |
| 97 | 97 | |
| 98 | 98 | $php_update_message = '</p><p>' . sprintf( |
| 99 | 99 | /* translators: %s: URL to Update PHP page. */ |
| 100 | | __( '<a href="%s">Learn more about updating PHP</a>.' ), |
| | 100 | __( '<a href="%s" target="_blank">Learn more about updating PHP</a>.' ), |
| 101 | 101 | esc_url( wp_get_update_php_url() ) |
| 102 | 102 | ); |
| 103 | 103 | |
| … |
… |
function list_core_update( $update ) { |
| 110 | 110 | if ( ! $mysql_compat && ! $php_compat ) { |
| 111 | 111 | $message = sprintf( |
| 112 | 112 | /* translators: 1: URL to WordPress release notes, 2: WordPress version number, 3: Minimum required PHP version number, 4: Minimum required MySQL version number, 5: Current PHP version number, 6: Current MySQL version number. */ |
| 113 | | __( 'You cannot update because <a href="%1$s">WordPress %2$s</a> requires PHP version %3$s or higher and MySQL version %4$s or higher. You are running PHP version %5$s and MySQL version %6$s.' ), |
| | 113 | __( 'You cannot update because <a href="%1$s" target="_blank">WordPress %2$s</a> requires PHP version %3$s or higher and MySQL version %4$s or higher. You are running PHP version %5$s and MySQL version %6$s.' ), |
| 114 | 114 | $version_url, |
| 115 | 115 | $update->current, |
| 116 | 116 | $update->php_version, |
| … |
… |
function list_core_update( $update ) { |
| 121 | 121 | } elseif ( ! $php_compat ) { |
| 122 | 122 | $message = sprintf( |
| 123 | 123 | /* translators: 1: URL to WordPress release notes, 2: WordPress version number, 3: Minimum required PHP version number, 4: Current PHP version number. */ |
| 124 | | __( 'You cannot update because <a href="%1$s">WordPress %2$s</a> requires PHP version %3$s or higher. You are running version %4$s.' ), |
| | 124 | __( 'You cannot update because <a href="%1$s" target="_blank">WordPress %2$s</a> requires PHP version %3$s or higher. You are running version %4$s.' ), |
| 125 | 125 | $version_url, |
| 126 | 126 | $update->current, |
| 127 | 127 | $update->php_version, |
| … |
… |
function list_core_update( $update ) { |
| 130 | 130 | } elseif ( ! $mysql_compat ) { |
| 131 | 131 | $message = sprintf( |
| 132 | 132 | /* translators: 1: URL to WordPress release notes, 2: WordPress version number, 3: Minimum required MySQL version number, 4: Current MySQL version number. */ |
| 133 | | __( 'You cannot update because <a href="%1$s">WordPress %2$s</a> requires MySQL version %3$s or higher. You are running version %4$s.' ), |
| | 133 | __( 'You cannot update because <a href="%1$s" target="_blank">WordPress %2$s</a> requires MySQL version %3$s or higher. You are running version %4$s.' ), |
| 134 | 134 | $version_url, |
| 135 | 135 | $update->current, |
| 136 | 136 | $update->mysql_version, |
| … |
… |
function list_core_update( $update ) { |
| 139 | 139 | } else { |
| 140 | 140 | $message = sprintf( |
| 141 | 141 | /* translators: 1: Installed WordPress version number, 2: URL to WordPress release notes, 3: New WordPress version number, including locale if necessary. */ |
| 142 | | __( 'You can update from WordPress %1$s to <a href="%2$s">WordPress %3$s</a> manually:' ), |
| | 142 | __( 'You can update from WordPress %1$s to <a href="%2$s" target="_blank">WordPress %3$s</a> manually:' ), |
| 143 | 143 | $wp_version, |
| 144 | 144 | $version_url, |
| 145 | 145 | $version_string |
| … |
… |
function core_upgrade_preamble() { |
| 264 | 264 | echo '<div class="notice notice-warning inline"><p>'; |
| 265 | 265 | printf( |
| 266 | 266 | /* translators: 1: Documentation on WordPress backups, 2: Documentation on updating WordPress. */ |
| 267 | | __( '<strong>Important:</strong> Before updating, please <a href="%1$s">back up your database and files</a>. For help with updates, visit the <a href="%2$s">Updating WordPress</a> documentation page.' ), |
| | 267 | __( '<strong>Important:</strong> Before updating, please <a href="%1$s" target="_blank">back up your database and files</a>. For help with updates, visit the <a href="%2$s" >Updating WordPress</a> documentation page.' ), |
| 268 | 268 | __( 'https://wordpress.org/support/article/wordpress-backups/' ), |
| 269 | 269 | __( 'https://wordpress.org/support/article/updating-wordpress/' ) |
| 270 | 270 | ); |
| … |
… |
function list_plugin_updates() { |
| 538 | 538 | $compat .= '<br />' . __( 'This update does not work with your version of PHP.' ) . ' '; |
| 539 | 539 | $compat .= sprintf( |
| 540 | 540 | /* translators: %s: URL to Update PHP page. */ |
| 541 | | __( '<a href="%s">Learn more about updating PHP</a>.' ), |
| | 541 | __( '<a href="%s" target="_blank">Learn more about updating PHP</a>.' ), |
| 542 | 542 | esc_url( wp_get_update_php_url() ) |
| 543 | 543 | ); |
| 544 | 544 | |
| … |
… |
function list_theme_updates() { |
| 647 | 647 | <?php |
| 648 | 648 | printf( |
| 649 | 649 | /* translators: %s: Link to documentation on child themes. */ |
| 650 | | __( '<strong>Please Note:</strong> Any customizations you have made to theme files will be lost. Please consider using <a href="%s">child themes</a> for modifications.' ), |
| | 650 | __( '<strong>Please Note:</strong> Any customizations you have made to theme files will be lost. Please consider using <a href="%s" target="_blank">child themes</a> for modifications.' ), |
| 651 | 651 | __( 'https://developer.wordpress.org/themes/advanced-topics/child-themes/' ) |
| 652 | 652 | ); |
| 653 | 653 | ?> |
| … |
… |
function list_theme_updates() { |
| 685 | 685 | if ( current_user_can( 'update_core' ) && current_user_can( 'update_php' ) ) { |
| 686 | 686 | $compat .= sprintf( |
| 687 | 687 | /* translators: 1: URL to WordPress Updates screen, 2: URL to Update PHP page. */ |
| 688 | | __( '<a href="%1$s">Please update WordPress</a>, and then <a href="%2$s">learn more about updating PHP</a>.' ), |
| | 688 | __( '<a href="%1$s">Please update WordPress</a>, and then <a href="%2$s" target="_blank">learn more about updating PHP</a>.' ), |
| 689 | 689 | esc_url( self_admin_url( 'update-core.php' ) ), |
| 690 | 690 | esc_url( wp_get_update_php_url() ) |
| 691 | 691 | ); |
| … |
… |
function list_theme_updates() { |
| 704 | 704 | } elseif ( current_user_can( 'update_php' ) ) { |
| 705 | 705 | $compat .= sprintf( |
| 706 | 706 | /* translators: %s: URL to Update PHP page. */ |
| 707 | | __( '<a href="%s">Learn more about updating PHP</a>.' ), |
| | 707 | __( '<a href="%s" target="_blank">Learn more about updating PHP</a>.' ), |
| 708 | 708 | esc_url( wp_get_update_php_url() ) |
| 709 | 709 | ); |
| 710 | 710 | |
| … |
… |
function list_theme_updates() { |
| 728 | 728 | if ( current_user_can( 'update_php' ) ) { |
| 729 | 729 | $compat .= sprintf( |
| 730 | 730 | /* translators: %s: URL to Update PHP page. */ |
| 731 | | __( '<a href="%s">Learn more about updating PHP</a>.' ), |
| | 731 | __( '<a href="%s" target="_blank">Learn more about updating PHP</a>.' ), |
| 732 | 732 | esc_url( wp_get_update_php_url() ) |
| 733 | 733 | ); |
| 734 | 734 | |
| … |
… |
if ( ( current_user_can( 'update_themes' ) && wp_is_auto_update_enabled_for_type |
| 1008 | 1008 | ) |
| 1009 | 1009 | ); |
| 1010 | 1010 | |
| 1011 | | $help_sidebar_autoupdates = '<p>' . __( '<a href="https://wordpress.org/support/article/plugins-themes-auto-updates/">Documentation on Auto-updates</a>' ) . '</p>'; |
| | 1011 | $help_sidebar_autoupdates = '<p>' . __( '<a href="https://wordpress.org/support/article/plugins-themes-auto-updates/" target="_blank">Documentation on Auto-updates</a>' ) . '</p>'; |
| 1012 | 1012 | } |
| 1013 | 1013 | |
| 1014 | 1014 | get_current_screen()->set_help_sidebar( |
| 1015 | 1015 | '<p><strong>' . __( 'For more information:' ) . '</strong></p>' . |
| 1016 | | '<p>' . __( '<a href="https://wordpress.org/support/article/dashboard-updates-screen/">Documentation on Updating WordPress</a>' ) . '</p>' . |
| | 1016 | '<p>' . __( '<a href="https://wordpress.org/support/article/dashboard-updates-screen/" target="_blank">Documentation on Updating WordPress</a>' ) . '</p>' . |
| 1017 | 1017 | $help_sidebar_autoupdates . |
| 1018 | | '<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>' |
| | 1018 | '<p>' . __( '<a href="https://wordpress.org/support/" target="_blank">Support</a>' ) . '</p>' |
| 1019 | 1019 | ); |
| 1020 | 1020 | |
| 1021 | 1021 | if ( 'upgrade-core' === $action ) { |
-
diff --git a/src/wp-admin/upload.php b/src/wp-admin/upload.php
index 1594d7858d..9d4f11c577 100644
|
a
|
b
|
get_current_screen()->add_help_tab( |
| 349 | 349 | |
| 350 | 350 | get_current_screen()->set_help_sidebar( |
| 351 | 351 | '<p><strong>' . __( 'For more information:' ) . '</strong></p>' . |
| 352 | | '<p>' . __( '<a href="https://wordpress.org/support/article/media-library-screen/">Documentation on Media Library</a>' ) . '</p>' . |
| 353 | | '<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>' |
| | 352 | '<p>' . __( '<a href="https://wordpress.org/support/article/media-library-screen/" target="_blank">Documentation on Media Library</a>' ) . '</p>' . |
| | 353 | '<p>' . __( '<a href="https://wordpress.org/support/" target="_blank">Support</a>' ) . '</p>' |
| 354 | 354 | ); |
| 355 | 355 | |
| 356 | 356 | get_current_screen()->set_screen_reader_content( |
-
diff --git a/src/wp-admin/users.php b/src/wp-admin/users.php
index ba96928bcf..0cbbe6e096 100644
|
a
|
b
|
unset( $help ); |
| 79 | 79 | |
| 80 | 80 | get_current_screen()->set_help_sidebar( |
| 81 | 81 | '<p><strong>' . __( 'For more information:' ) . '</strong></p>' . |
| 82 | | '<p>' . __( '<a href="https://wordpress.org/support/article/users-screen/">Documentation on Managing Users</a>' ) . '</p>' . |
| 83 | | '<p>' . __( '<a href="https://wordpress.org/support/article/roles-and-capabilities/">Descriptions of Roles and Capabilities</a>' ) . '</p>' . |
| 84 | | '<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>' |
| | 82 | '<p>' . __( '<a href="https://wordpress.org/support/article/users-screen/" target="_blank">Documentation on Managing Users</a>' ) . '</p>' . |
| | 83 | '<p>' . __( '<a href="https://wordpress.org/support/article/roles-and-capabilities/" target="_blank">Descriptions of Roles and Capabilities</a>' ) . '</p>' . |
| | 84 | '<p>' . __( '<a href="https://wordpress.org/support/" target="_blank">Support</a>' ) . '</p>' |
| 85 | 85 | ); |
| 86 | 86 | |
| 87 | 87 | get_current_screen()->set_screen_reader_content( |
-
diff --git a/src/wp-includes/comment-template.php b/src/wp-includes/comment-template.php
index b5cbdc5cbe..acfc26775a 100644
|
a
|
b
|
function get_comment_author_link( $comment_ID = 0 ) { |
| 252 | 252 | $rel = ! empty( $rel ) ? sprintf( ' rel="%s"', $rel ) : ''; |
| 253 | 253 | |
| 254 | 254 | $return = sprintf( |
| 255 | | '<a href="%1$s" class="url"%2$s>%3$s</a>', |
| | 255 | '<a href="%1$s" target="_blank" class="url"%2$s>%3$s</a>', |
| 256 | 256 | $url, |
| 257 | 257 | $rel, |
| 258 | 258 | $author |
-
diff --git a/src/wp-includes/widgets.php b/src/wp-includes/widgets.php
index dc643ffe1c..49c3b7aa7f 100644
|
a
|
b
|
function wp_widget_rss_output( $rss, $args = array() ) { |
| 1655 | 1655 | if ( '' === $link ) { |
| 1656 | 1656 | echo "<li>$title{$date}{$summary}{$author}</li>"; |
| 1657 | 1657 | } elseif ( $show_summary ) { |
| 1658 | | echo "<li><a class='rsswidget' href='$link'>$title</a>{$date}{$summary}{$author}</li>"; |
| | 1658 | echo "<li><a class='rsswidget' href='$link' target='_blank'>$title</a>{$date}{$summary}{$author}</li>"; |
| 1659 | 1659 | } else { |
| 1660 | | echo "<li><a class='rsswidget' href='$link'>$title</a>{$date}{$author}</li>"; |
| | 1660 | echo "<li><a class='rsswidget' href='$link' target='_blank'>$title</a>{$date}{$author}</li>"; |
| 1661 | 1661 | } |
| 1662 | 1662 | } |
| 1663 | 1663 | echo '</ul>'; |