mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-10-03 14:17:06 +00:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@55414 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -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>'
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user