Help/About: Avoid extra redirections on HelpHub Links.
This changeset replaces various HelpHub links that have changed to avoid extra 301 redirections. Props sabernhardt, audrasjb. See #57726. Built from https://develop.svn.wordpress.org/trunk@55414 git-svn-id: http://core.svn.wordpress.org/trunk@54947 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
0000d83e08
commit
34229a4286
|
@ -208,8 +208,8 @@ get_current_screen()->add_help_tab(
|
|||
get_current_screen()->set_help_sidebar(
|
||||
'<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
|
||||
'<p>' . __( '<a href="https://wordpress.org/documentation/article/comments-screen/">Documentation on Comments</a>' ) . '</p>' .
|
||||
'<p>' . __( '<a href="https://wordpress.org/documentation/article/comment-spam/">Documentation on Comment Spam</a>' ) . '</p>' .
|
||||
'<p>' . __( '<a href="https://wordpress.org/documentation/article/keyboard-shortcuts/#keyboard-shortcuts-for-comments">Documentation on Keyboard Shortcuts</a>' ) . '</p>' .
|
||||
'<p>' . __( '<a href="https://wordpress.org/documentation/article/understand-comment-spam/">Documentation on Comment Spam</a>' ) . '</p>' .
|
||||
'<p>' . __( '<a href="https://wordpress.org/documentation/article/keyboard-shortcuts-classic-editor/#keyboard-shortcuts-for-comments">Documentation on Keyboard Shortcuts</a>' ) . '</p>' .
|
||||
'<p>' . __( '<a href="https://wordpress.org/support/forums/">Support forums</a>' ) . '</p>'
|
||||
);
|
||||
|
||||
|
|
|
@ -316,7 +316,7 @@ if ( 'post' === $post_type ) {
|
|||
'tools.php'
|
||||
) . '</p>' .
|
||||
'<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
|
||||
'<p>' . __( '<a href="https://wordpress.org/documentation/article/wordpress-editor/">Documentation on Writing and Editing Posts</a>' ) . '</p>' .
|
||||
'<p>' . __( '<a href="https://wordpress.org/documentation/article/write-posts-classic-editor/">Documentation on Writing and Editing Posts</a>' ) . '</p>' .
|
||||
'<p>' . __( '<a href="https://wordpress.org/support/forums/">Support forums</a>' ) . '</p>'
|
||||
);
|
||||
} elseif ( 'page' === $post_type ) {
|
||||
|
|
|
@ -746,7 +746,7 @@ function post_excerpt_meta_box( $post ) {
|
|||
printf(
|
||||
/* translators: %s: Documentation URL. */
|
||||
__( 'Excerpts are optional hand-crafted summaries of your content that can be used in your theme. <a href="%s">Learn more about manual excerpts</a>.' ),
|
||||
__( 'https://wordpress.org/documentation/article/excerpt/' )
|
||||
__( 'https://wordpress.org/documentation/article/what-is-an-excerpt-classic-editor/' )
|
||||
);
|
||||
?>
|
||||
</p>
|
||||
|
@ -821,7 +821,7 @@ function post_custom_meta_box( $post ) {
|
|||
printf(
|
||||
/* translators: %s: Documentation URL. */
|
||||
__( 'Custom fields can be used to add extra metadata to a post that you can <a href="%s">use in your theme</a>.' ),
|
||||
__( 'https://wordpress.org/documentation/article/custom-fields/' )
|
||||
__( 'https://wordpress.org/documentation/article/assign-custom-fields/' )
|
||||
);
|
||||
?>
|
||||
</p>
|
||||
|
|
|
@ -130,5 +130,5 @@ function options_reading_add_js() {
|
|||
*/
|
||||
function options_reading_blog_charset() {
|
||||
echo '<input name="blog_charset" type="text" id="blog_charset" value="' . esc_attr( get_option( 'blog_charset' ) ) . '" class="regular-text" />';
|
||||
echo '<p class="description">' . __( 'The <a href="https://wordpress.org/documentation/article/glossary/#character-set">character encoding</a> of your site (UTF-8 is recommended)' ) . '</p>';
|
||||
echo '<p class="description">' . __( 'The <a href="https://wordpress.org/documentation/article/wordpress-glossary/#character-set">character encoding</a> of your site (UTF-8 is recommended)' ) . '</p>';
|
||||
}
|
||||
|
|
|
@ -410,7 +410,7 @@ foreach ( $time_formats as $format ) {
|
|||
'<p><strong>' . __( 'Preview:' ) . '</strong> <span class="example">' . date_i18n( get_option( 'time_format' ) ) . '</span>' .
|
||||
"<span class='spinner'></span>\n" . '</p>';
|
||||
|
||||
echo "\t<p class='date-time-doc'>" . __( '<a href="https://wordpress.org/documentation/article/formatting-date-and-time/">Documentation on date and time formatting</a>.' ) . "</p>\n";
|
||||
echo "\t<p class='date-time-doc'>" . __( '<a href="https://wordpress.org/documentation/article/customize-date-and-time-format/">Documentation on date and time formatting</a>.' ) . "</p>\n";
|
||||
?>
|
||||
</fieldset>
|
||||
</td>
|
||||
|
|
|
@ -58,7 +58,7 @@ get_current_screen()->add_help_tab(
|
|||
|
||||
$help_sidebar_content = '<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
|
||||
'<p>' . __( '<a href="https://wordpress.org/documentation/article/settings-permalinks-screen/">Documentation on Permalinks Settings</a>' ) . '</p>' .
|
||||
'<p>' . __( '<a href="https://wordpress.org/documentation/article/using-permalinks/">Documentation on Using Permalinks</a>' ) . '</p>';
|
||||
'<p>' . __( '<a href="https://wordpress.org/documentation/article/customize-permalinks/">Documentation on Using Permalinks</a>' ) . '</p>';
|
||||
|
||||
if ( $is_nginx ) {
|
||||
$help_sidebar_content .= '<p>' . __( '<a href="https://wordpress.org/documentation/article/nginx/">Documentation on Nginx configuration</a>.' ) . '</p>';
|
||||
|
|
|
@ -585,7 +585,7 @@ if ( current_user_can( 'update_plugins' ) && wp_is_auto_update_enabled_for_type(
|
|||
|
||||
get_current_screen()->set_help_sidebar(
|
||||
'<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
|
||||
'<p>' . __( '<a href="https://wordpress.org/documentation/article/managing-plugins/">Documentation on Managing Plugins</a>' ) . '</p>' .
|
||||
'<p>' . __( '<a href="https://wordpress.org/documentation/article/manage-plugins/">Documentation on Managing Plugins</a>' ) . '</p>' .
|
||||
$help_sidebar_autoupdates .
|
||||
'<p>' . __( '<a href="https://wordpress.org/support/forums/">Support forums</a>' ) . '</p>'
|
||||
);
|
||||
|
|
|
@ -204,7 +204,7 @@ if ( current_user_can( 'update_themes' ) && wp_is_auto_update_enabled_for_type(
|
|||
|
||||
get_current_screen()->set_help_sidebar(
|
||||
'<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
|
||||
'<p>' . __( '<a href="https://wordpress.org/documentation/article/using-themes/">Documentation on Using Themes</a>' ) . '</p>' .
|
||||
'<p>' . __( '<a href="https://wordpress.org/documentation/article/work-with-themes/">Documentation on Using Themes</a>' ) . '</p>' .
|
||||
'<p>' . __( '<a href="https://wordpress.org/documentation/article/appearance-themes-screen/">Documentation on Managing Themes</a>' ) . '</p>' .
|
||||
$help_sidebar_autoupdates .
|
||||
'<p>' . __( '<a href="https://wordpress.org/support/forums/">Support forums</a>' ) . '</p>'
|
||||
|
|
|
@ -333,7 +333,7 @@ switch ( $action ) {
|
|||
<input type="checkbox" name="comment_shortcuts" id="comment_shortcuts" value="true" <?php checked( 'true', $profile_user->comment_shortcuts ); ?> />
|
||||
<?php _e( 'Enable keyboard shortcuts for comment moderation.' ); ?>
|
||||
</label>
|
||||
<?php _e( '<a href="https://wordpress.org/documentation/article/keyboard-shortcuts/#keyboard-shortcuts-for-comments">Documentation on Keyboard Shortcuts</a>' ); ?>
|
||||
<?php _e( '<a href="https://wordpress.org/documentation/article/keyboard-shortcuts-classic-editor/#keyboard-shortcuts-for-comments">Documentation on Keyboard Shortcuts</a>' ); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
|
|
|
@ -68,7 +68,7 @@ get_current_screen()->add_help_tab(
|
|||
|
||||
get_current_screen()->set_help_sidebar(
|
||||
'<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
|
||||
'<p>' . __( '<a href="https://wordpress.org/documentation/article/appearance-widgets-screen/">Documentation on Widgets</a>' ) . '</p>' .
|
||||
'<p>' . __( '<a href="https://wordpress.org/documentation/article/appearance-widgets-screen-classic-editor/">Documentation on Widgets</a>' ) . '</p>' .
|
||||
'<p>' . __( '<a href="https://wordpress.org/support/forums/">Support forums</a>' ) . '</p>'
|
||||
);
|
||||
|
||||
|
|
|
@ -118,8 +118,8 @@ function twentyeleven_theme_options_help() {
|
|||
'<p>' . __( 'Remember to click "Save Changes" to save any changes you have made to the theme options.', 'twentyeleven' ) . '</p>';
|
||||
|
||||
$sidebar = '<p><strong>' . __( 'For more information:', 'twentyeleven' ) . '</strong></p>' .
|
||||
'<p>' . __( '<a href="https://wordpress.org/documentation/article/appearance-customize-screen/" target="_blank">Documentation on Theme Options</a>', 'twentyeleven' ) . '</p>' .
|
||||
'<p>' . __( '<a href="https://wordpress.org/support/" target="_blank">Support</a>', 'twentyeleven' ) . '</p>';
|
||||
'<p>' . __( '<a href="https://wordpress.org/documentation/article/customizer/" target="_blank">Documentation on Theme Customization</a>', 'twentyeleven' ) . '</p>' .
|
||||
'<p>' . __( '<a href="https://wordpress.org/support/forums/" target="_blank">Support forums</a>', 'twentyeleven' ) . '</p>';
|
||||
|
||||
$screen = get_current_screen();
|
||||
|
||||
|
|
|
@ -50,7 +50,7 @@ class WP_Customize_Nav_Menu_Locations_Control extends WP_Customize_Control {
|
|||
printf(
|
||||
/* translators: 1: Documentation URL, 2: Additional link attributes, 3: Accessibility text. */
|
||||
_x( '(If you plan to use a menu <a href="%1$s" %2$s>widget%3$s</a>, skip this step.)', 'menu locations' ),
|
||||
__( 'https://wordpress.org/documentation/article/wordpress-widgets/' ),
|
||||
__( 'https://wordpress.org/documentation/article/manage-wordpress-widgets/' ),
|
||||
' class="external-link" target="_blank"',
|
||||
sprintf(
|
||||
'<span class="screen-reader-text"> %s</span>',
|
||||
|
|
|
@ -4963,7 +4963,7 @@ function sanitize_option( $option, $value ) {
|
|||
$error = sprintf(
|
||||
/* translators: %s: Documentation URL. */
|
||||
__( 'A structure tag is required when using custom permalinks. <a href="%s">Learn more</a>' ),
|
||||
__( 'https://wordpress.org/documentation/article/using-permalinks/#choosing-your-permalink-structure' )
|
||||
__( 'https://wordpress.org/documentation/article/customize-permalinks/#choosing-your-permalink-structure' )
|
||||
);
|
||||
}
|
||||
break;
|
||||
|
|
|
@ -3274,7 +3274,7 @@ function retrieve_password( $user_login = null ) {
|
|||
sprintf(
|
||||
/* translators: %s: Documentation URL. */
|
||||
__( '<strong>Error:</strong> The email could not be sent. Your site may not be correctly configured to send emails. <a href="%s">Get support for resetting your password</a>.' ),
|
||||
esc_url( __( 'https://wordpress.org/documentation/article/resetting-your-password/' ) )
|
||||
esc_url( __( 'https://wordpress.org/documentation/article/reset-your-password/' ) )
|
||||
)
|
||||
);
|
||||
return $errors;
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '6.2-beta3-55413';
|
||||
$wp_version = '6.2-beta3-55414';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
* This functionality was found in a plugin before the WordPress 2.2 release, which
|
||||
* included it in the core from that point on.
|
||||
*
|
||||
* @link https://wordpress.org/documentation/article/wordpress-widgets/
|
||||
* @link https://wordpress.org/documentation/article/manage-wordpress-widgets/
|
||||
* @link https://developer.wordpress.org/themes/functionality/widgets/
|
||||
*
|
||||
* @package WordPress
|
||||
|
|
Loading…
Reference in New Issue