Skip to content

Commit 0a422d3

Browse files
committed
Help/About: Use the new /documentation/ URLs for HelpHub links in WordPress Admin.
As `https://wordpress.org/support/` was redirected to `https://wordpress.org/documentation/`, this changeset replaces various `/support/article/*` links with `/documentation/article/*` to avoid an extra redirect. This also updates links to Support Forums by replacing `https://wordpress.org/support/` URLs with `https://wordpress.org/support/forums/`. Props SergeyBiryukov, audrasjb, dhrupo, hasanmisbah, sakibmd, sabernhardt. See #57726. git-svn-id: https://develop.svn.wordpress.org/trunk@55412 602fd350-edb4-49c9-b593-d223f7449a82
1 parent e2ce8d4 commit 0a422d3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+162
-162
lines changed

src/readme.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ <h3>Updating Manually</h3>
4747
</ol>
4848

4949
<h2>Migrating from other systems</h2>
50-
<p>WordPress can <a href="https://wordpress.org/support/article/importing-content/">import from a number of systems</a>. First you need to get WordPress installed and working as described above, before using <a href="wp-admin/import.php">our import tools</a>.</p>
50+
<p>WordPress can <a href="https://wordpress.org/documentation/article/importing-content/">import from a number of systems</a>. First you need to get WordPress installed and working as described above, before using <a href="wp-admin/import.php">our import tools</a>.</p>
5151

5252
<h2>System Requirements</h2>
5353
<ul>

src/wp-admin/_index.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,8 @@
129129

130130
$screen->set_help_sidebar(
131131
'<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/documentation/article/dashboard-screen/">Documentation on Dashboard</a>' ) . '</p>' .
133+
'<p>' . __( '<a href="https://wordpress.org/support/forums/">Support forums</a>' ) . '</p>' .
134134
'<p>' . $wp_version_text . '</p>'
135135
);
136136

src/wp-admin/comment.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@
6868

6969
get_current_screen()->set_help_sidebar(
7070
'<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/documentation/article/comments-screen/">Documentation on Comments</a>' ) . '</p>' .
72+
'<p>' . __( '<a href="https://wordpress.org/support/forums/">Support forums</a>' ) . '</p>'
7373
);
7474

7575
wp_enqueue_script( 'comment' );

src/wp-admin/customize.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@
250250
</p>
251251
<p>
252252
<?php
253-
_e( '<a href="https://wordpress.org/support/article/appearance-customize-screen/">Documentation on Customizer</a>' );
253+
_e( '<a href="https://wordpress.org/documentation/article/appearance-customize-screen/">Documentation on Customizer</a>' );
254254
?>
255255
</p>
256256
</div>

src/wp-admin/edit-comments.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -207,10 +207,10 @@
207207

208208
get_current_screen()->set_help_sidebar(
209209
'<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/documentation/article/comments-screen/">Documentation on Comments</a>' ) . '</p>' .
211+
'<p>' . __( '<a href="https://wordpress.org/documentation/article/comment-spam/">Documentation on Comment Spam</a>' ) . '</p>' .
212+
'<p>' . __( '<a href="https://wordpress.org/documentation/article/keyboard-shortcuts/#keyboard-shortcuts-for-comments">Documentation on Keyboard Shortcuts</a>' ) . '</p>' .
213+
'<p>' . __( '<a href="https://wordpress.org/support/forums/">Support forums</a>' ) . '</p>'
214214
);
215215

216216
get_current_screen()->set_screen_reader_content(

src/wp-admin/edit-form-advanced.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -316,8 +316,8 @@
316316
'tools.php'
317317
) . '</p>' .
318318
'<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
319-
'<p>' . __( '<a href="https://wordpress.org/support/article/wordpress-editor/">Documentation on Writing and Editing Posts</a>' ) . '</p>' .
320-
'<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>'
319+
'<p>' . __( '<a href="https://wordpress.org/documentation/article/wordpress-editor/">Documentation on Writing and Editing Posts</a>' ) . '</p>' .
320+
'<p>' . __( '<a href="https://wordpress.org/support/forums/">Support forums</a>' ) . '</p>'
321321
);
322322
} elseif ( 'page' === $post_type ) {
323323
$about_pages = '<p>' . __( 'Pages are similar to posts in that they have a title, body text, and associated metadata, but they are different in that they are not part of the chronological blog stream, kind of like permanent posts. Pages are not categorized or tagged, but can have a hierarchy. You can nest pages under other pages by making one the &#8220;Parent&#8221; of the other, creating a group of pages.' ) . '</p>' .
@@ -333,9 +333,9 @@
333333

334334
get_current_screen()->set_help_sidebar(
335335
'<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
336-
'<p>' . __( '<a href="https://wordpress.org/support/article/pages-add-new-screen/">Documentation on Adding New Pages</a>' ) . '</p>' .
337-
'<p>' . __( '<a href="https://wordpress.org/support/article/pages-screen/">Documentation on Editing Pages</a>' ) . '</p>' .
338-
'<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>'
336+
'<p>' . __( '<a href="https://wordpress.org/documentation/article/pages-add-new-screen/">Documentation on Adding New Pages</a>' ) . '</p>' .
337+
'<p>' . __( '<a href="https://wordpress.org/documentation/article/pages-screen/">Documentation on Editing Pages</a>' ) . '</p>' .
338+
'<p>' . __( '<a href="https://wordpress.org/support/forums/">Support forums</a>' ) . '</p>'
339339
);
340340
} elseif ( 'attachment' === $post_type ) {
341341
get_current_screen()->add_help_tab(
@@ -352,14 +352,14 @@
352352

353353
get_current_screen()->set_help_sidebar(
354354
'<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
355-
'<p>' . __( '<a href="https://wordpress.org/support/article/edit-media/">Documentation on Edit Media</a>' ) . '</p>' .
356-
'<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>'
355+
'<p>' . __( '<a href="https://wordpress.org/documentation/article/edit-media/">Documentation on Edit Media</a>' ) . '</p>' .
356+
'<p>' . __( '<a href="https://wordpress.org/support/forums/">Support forums</a>' ) . '</p>'
357357
);
358358
}
359359

360360
if ( 'post' === $post_type || 'page' === $post_type ) {
361361
$inserting_media = '<p>' . __( 'You can upload and insert media (images, audio, documents, etc.) by clicking the Add Media button. You can select from the images and files already uploaded to the Media Library, or upload new media to add to your page or post. To create an image gallery, select the images to add and click the &#8220;Create a new gallery&#8221; button.' ) . '</p>';
362-
$inserting_media .= '<p>' . __( 'You can also embed media from many popular websites including Twitter, YouTube, Flickr and others by pasting the media URL on its own line into the content of your post/page. <a href="https://wordpress.org/support/article/embeds/">Learn more about embeds</a>.' ) . '</p>';
362+
$inserting_media .= '<p>' . __( 'You can also embed media from many popular websites including Twitter, YouTube, Flickr and others by pasting the media URL on its own line into the content of your post/page. <a href="https://wordpress.org/documentation/article/embeds/">Learn more about embeds</a>.' ) . '</p>';
363363

364364
get_current_screen()->add_help_tab(
365365
array(
@@ -377,7 +377,7 @@
377377
'</li>';
378378

379379
if ( current_theme_supports( 'post-formats' ) && post_type_supports( 'post', 'post-formats' ) ) {
380-
$publish_box .= '<li>' . __( '<strong>Format</strong> &mdash; Post Formats designate how your theme will display a specific post. For example, you could have a <em>standard</em> blog post with a title and paragraphs, or a short <em>aside</em> that omits the title and contains a short text blurb. Your theme could enable all or some of 10 possible formats. <a href="https://wordpress.org/support/article/post-formats/#supported-formats">Learn more about each post format</a>.' ) . '</li>';
380+
$publish_box .= '<li>' . __( '<strong>Format</strong> &mdash; Post Formats designate how your theme will display a specific post. For example, you could have a <em>standard</em> blog post with a title and paragraphs, or a short <em>aside</em> that omits the title and contains a short text blurb. Your theme could enable all or some of 10 possible formats. <a href="https://wordpress.org/documentation/article/post-formats/#supported-formats">Learn more about each post format</a>.' ) . '</li>';
381381
}
382382

383383
if ( current_theme_supports( 'post-thumbnails' ) && post_type_supports( 'post', 'thumbnail' ) ) {

src/wp-admin/edit-link-form.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
get_current_screen()->set_help_sidebar(
7575
'<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
7676
'<p>' . __( '<a href="https://codex.wordpress.org/Links_Add_New_Screen">Documentation on Creating Links</a>' ) . '</p>' .
77-
'<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>'
77+
'<p>' . __( '<a href="https://wordpress.org/support/forums/">Support forums</a>' ) . '</p>'
7878
);
7979

8080
require_once ABSPATH . 'wp-admin/admin-header.php';

src/wp-admin/edit-tags.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -302,14 +302,14 @@
302302
$help = '<p><strong>' . __( 'For more information:' ) . '</strong></p>';
303303

304304
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/documentation/article/posts-categories-screen/">Documentation on Categories</a>' ) . '</p>';
306306
} elseif ( 'link_category' === $taxonomy ) {
307307
$help .= '<p>' . __( '<a href="https://codex.wordpress.org/Links_Link_Categories_Screen">Documentation on Link Categories</a>' ) . '</p>';
308308
} 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/documentation/article/posts-tags-screen/">Documentation on Tags</a>' ) . '</p>';
310310
}
311311

312-
$help .= '<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>';
312+
$help .= '<p>' . __( '<a href="https://wordpress.org/support/forums/">Support forums</a>' ) . '</p>';
313313

314314
get_current_screen()->set_help_sidebar( $help );
315315

src/wp-admin/edit.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -294,8 +294,8 @@
294294

295295
get_current_screen()->set_help_sidebar(
296296
'<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/documentation/article/posts-screen/">Documentation on Managing Posts</a>' ) . '</p>' .
298+
'<p>' . __( '<a href="https://wordpress.org/support/forums/">Support forums</a>' ) . '</p>'
299299
);
300300

301301
} elseif ( 'page' === $post_type ) {
@@ -319,8 +319,8 @@
319319

320320
get_current_screen()->set_help_sidebar(
321321
'<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/documentation/article/pages-screen/">Documentation on Managing Pages</a>' ) . '</p>' .
323+
'<p>' . __( '<a href="https://wordpress.org/support/forums/">Support forums</a>' ) . '</p>'
324324
);
325325

326326
}

src/wp-admin/erase-personal-data.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@
6262

6363
get_current_screen()->set_help_sidebar(
6464
'<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/documentation/article/tools-erase-personal-data-screen/">Documentation on Erase Personal Data</a>' ) . '</p>' .
66+
'<p>' . __( '<a href="https://wordpress.org/support/forums/">Support forums</a>' ) . '</p>'
6767
);
6868

6969
// Handle list table actions.

0 commit comments

Comments
 (0)