From 8e85299a002c39b3a4b47189794c9ee5d8a8c559 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Thu, 25 Jul 2019 22:45:57 +0000 Subject: [PATCH] General: First pass at replacing Codex URLs with a corresponding HelpHub or DevHub article. Props ianbelanger, tobifjellner, SergeyBiryukov. See #47771. Built from https://develop.svn.wordpress.org/trunk@45674 git-svn-id: http://core.svn.wordpress.org/trunk@45485 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- readme.html | 2 +- wp-admin/comment.php | 2 +- wp-admin/edit-comments.php | 6 +++--- wp-admin/edit-form-advanced.php | 12 ++++++------ wp-admin/edit-tag-form.php | 2 +- wp-admin/edit-tags.php | 4 ++-- wp-admin/edit.php | 4 ++-- wp-admin/export.php | 2 +- wp-admin/import.php | 2 +- wp-admin/includes/dashboard.php | 2 +- wp-admin/includes/file.php | 2 +- wp-admin/includes/meta-boxes.php | 8 ++++---- wp-admin/includes/ms.php | 2 +- wp-admin/includes/options.php | 2 +- wp-admin/index.php | 2 +- wp-admin/media-new.php | 2 +- wp-admin/media.php | 2 +- wp-admin/nav-menus.php | 2 +- wp-admin/network.php | 8 ++++---- wp-admin/network/index.php | 2 +- wp-admin/network/site-new.php | 2 +- wp-admin/network/sites.php | 2 +- wp-admin/network/upgrade.php | 2 +- wp-admin/options-discussion.php | 2 +- wp-admin/options-general.php | 6 +++--- wp-admin/options-media.php | 2 +- wp-admin/options-permalink.php | 8 ++++---- wp-admin/options-reading.php | 2 +- wp-admin/options-writing.php | 2 +- wp-admin/options.php | 2 +- wp-admin/plugin-editor.php | 4 ++-- wp-admin/plugin-install.php | 2 +- wp-admin/plugins.php | 2 +- wp-admin/revision.php | 2 +- wp-admin/setup-config.php | 2 +- wp-admin/theme-editor.php | 8 ++++---- wp-admin/theme-install.php | 2 +- wp-admin/themes.php | 2 +- wp-admin/tools.php | 2 +- wp-admin/update-core.php | 4 ++-- wp-admin/upload.php | 4 ++-- wp-admin/user-edit.php | 4 ++-- wp-admin/user-new.php | 2 +- wp-admin/users.php | 4 ++-- wp-admin/widgets.php | 4 ++-- wp-includes/author-template.php | 8 ++++---- wp-includes/class-wp-oembed.php | 4 ++-- wp-includes/class-wp-query.php | 2 +- wp-includes/comment.php | 8 ++++---- wp-includes/cron.php | 4 ++-- ...class-wp-customize-nav-menu-locations-control.php | 2 +- wp-includes/date.php | 2 +- wp-includes/deprecated.php | 4 ++-- wp-includes/formatting.php | 2 +- wp-includes/functions.php | 4 ++-- wp-includes/ms-load.php | 2 +- wp-includes/plugin.php | 2 +- wp-includes/post.php | 2 +- wp-includes/query.php | 2 +- wp-includes/shortcodes.php | 2 +- wp-includes/user.php | 6 +++--- wp-includes/vars.php | 2 +- wp-includes/version.php | 2 +- wp-includes/widgets.php | 4 ++-- wp-load.php | 2 +- 65 files changed, 107 insertions(+), 107 deletions(-) diff --git a/readme.html b/readme.html index 5caccc497d..de771081dd 100644 --- a/readme.html +++ b/readme.html @@ -48,7 +48,7 @@

Migrating from other systems

-

WordPress can import from a number of systems. First you need to get WordPress installed and working as described above, before using our import tools.

+

WordPress can import from a number of systems. First you need to get WordPress installed and working as described above, before using our import tools.

System Requirements

diff --git a/wp-admin/includes/file.php b/wp-admin/includes/file.php index a64e0f670c..bc98129855 100644 --- a/wp-admin/includes/file.php +++ b/wp-admin/includes/file.php @@ -1811,7 +1811,7 @@ function WP_Filesystem( $args = false, $context = false, $allow_relaxed_file_own * The return value can be overridden by defining the `FS_METHOD` constant in `wp-config.php`, * or filtering via {@see 'filesystem_method'}. * - * @link https://codex.wordpress.org/Editing_wp-config.php#WordPress_Upgrade_Constants + * @link https://wordpress.org/support/article/editing-wp-config-php/#wordpress-upgrade-constants * * Plugins may define a custom transport handler, See WP_Filesystem(). * diff --git a/wp-admin/includes/meta-boxes.php b/wp-admin/includes/meta-boxes.php index 9a5e935d4c..d28c22e066 100644 --- a/wp-admin/includes/meta-boxes.php +++ b/wp-admin/includes/meta-boxes.php @@ -665,7 +665,7 @@ function post_excerpt_meta_box( $post ) { printf( /* translators: %s: Codex URL */ __( 'Excerpts are optional hand-crafted summaries of your content that can be used in your theme. Learn more about manual excerpts.' ), - __( 'https://codex.wordpress.org/Excerpt' ) + __( 'https://wordpress.org/support/article/excerpt/' ) ); ?>

@@ -702,7 +702,7 @@ function post_trackback_meta_box( $post ) { printf( /* translators: %s: Codex URL */ __( 'Trackbacks are a way to notify legacy blog systems that you’ve linked to them. If you link other WordPress sites, they’ll be notified automatically using pingbacks, no other action necessary.' ), - __( 'https://codex.wordpress.org/Introduction_to_Blogging#Managing_Comments' ) + __( 'https://wordpress.org/support/article/introduction-to-blogging/#comments' ) ); ?>

@@ -739,7 +739,7 @@ function post_custom_meta_box( $post ) { printf( /* translators: %s: Codex URL */ __( 'Custom fields can be used to add extra metadata to a post that you can use in your theme.' ), - __( 'https://codex.wordpress.org/Using_Custom_Fields' ) + __( 'https://wordpress.org/support/article/custom-fields/' ) ); ?>

@@ -763,7 +763,7 @@ function post_comment_status_meta_box( $post ) { printf( /* translators: %s: Codex URL */ __( 'Allow trackbacks and pingbacks on this page' ), - __( 'https://codex.wordpress.org/Introduction_to_Blogging#Managing_Comments' ) + __( 'https://wordpress.org/support/article/introduction-to-blogging/#managing-comments' ) ); ?> diff --git a/wp-admin/includes/ms.php b/wp-admin/includes/ms.php index d6f56b7e78..df39d492b1 100644 --- a/wp-admin/includes/ms.php +++ b/wp-admin/includes/ms.php @@ -1166,6 +1166,6 @@ function get_site_screen_help_tab_args() { */ function get_site_screen_help_sidebar_content() { return '

' . __( 'For more information:' ) . '

' . - '

' . __( 'Documentation on Site Management' ) . '

' . + '

' . __( 'Documentation on Site Management' ) . '

' . '

' . __( 'Support Forums' ) . '

'; } diff --git a/wp-admin/includes/options.php b/wp-admin/includes/options.php index 502af4b0bc..7911abcfba 100644 --- a/wp-admin/includes/options.php +++ b/wp-admin/includes/options.php @@ -129,5 +129,5 @@ function options_reading_add_js() { */ function options_reading_blog_charset() { echo ''; - echo '

' . __( 'The character encoding of your site (UTF-8 is recommended)' ) . '

'; + echo '

' . __( 'The character encoding of your site (UTF-8 is recommended)' ) . '

'; } diff --git a/wp-admin/index.php b/wp-admin/index.php index 61eb696874..c8e3d4cc73 100644 --- a/wp-admin/index.php +++ b/wp-admin/index.php @@ -104,7 +104,7 @@ unset( $help ); $screen->set_help_sidebar( '

' . __( 'For more information:' ) . '

' . - '

' . __( 'Documentation on Dashboard' ) . '

' . + '

' . __( 'Documentation on Dashboard' ) . '

' . '

' . __( 'Support' ) . '

' ); diff --git a/wp-admin/media-new.php b/wp-admin/media-new.php index 16eda1230e..0cc82a5fd4 100644 --- a/wp-admin/media-new.php +++ b/wp-admin/media-new.php @@ -57,7 +57,7 @@ get_current_screen()->add_help_tab( ); get_current_screen()->set_help_sidebar( '

' . __( 'For more information:' ) . '

' . - '

' . __( 'Documentation on Uploading Media Files' ) . '

' . + '

' . __( 'Documentation on Uploading Media Files' ) . '

' . '

' . __( 'Support' ) . '

' ); diff --git a/wp-admin/media.php b/wp-admin/media.php index b856c3bb90..1e09eda2f8 100644 --- a/wp-admin/media.php +++ b/wp-admin/media.php @@ -93,7 +93,7 @@ switch ( $action ) { get_current_screen()->set_help_sidebar( '

' . __( 'For more information:' ) . '

' . - '

' . __( 'Documentation on Edit Media' ) . '

' . + '

' . __( 'Documentation on Edit Media' ) . '

' . '

' . __( 'Support' ) . '

' ); diff --git a/wp-admin/nav-menus.php b/wp-admin/nav-menus.php index b7fc810ab7..4271e9d82e 100644 --- a/wp-admin/nav-menus.php +++ b/wp-admin/nav-menus.php @@ -592,7 +592,7 @@ endif; get_current_screen()->set_help_sidebar( '

' . __( 'For more information:' ) . '

' . - '

' . __( 'Documentation on Menus' ) . '

' . + '

' . __( 'Documentation on Menus' ) . '

' . '

' . __( 'Support' ) . '

' ); diff --git a/wp-admin/network.php b/wp-admin/network.php index 928be2d8df..dbe4b4b663 100644 --- a/wp-admin/network.php +++ b/wp-admin/network.php @@ -63,8 +63,8 @@ $network_help = '

' . __( 'This screen allows you to configure a network as ha '

' . __( 'Once you add this code and refresh your browser, multisite should be enabled. This screen, now in the Network Admin navigation menu, will keep an archive of the added code. You can toggle between Network Admin and Site Admin by clicking on the Network Admin or an individual site name under the My Sites dropdown in the Toolbar.' ) . '

' . '

' . __( 'The choice of subdirectory sites is disabled if this setup is more than a month old because of permalink problems with “/blog/” from the main site. This disabling will be addressed in a future version.' ) . '

' . '

' . __( 'For more information:' ) . '

' . - '

' . __( 'Documentation on Creating a Network' ) . '

' . - '

' . __( 'Documentation on the Network Screen' ) . '

'; + '

' . __( 'Documentation on Creating a Network' ) . '

' . + '

' . __( 'Documentation on the Network Screen' ) . '

'; get_current_screen()->add_help_tab( array( @@ -76,8 +76,8 @@ get_current_screen()->add_help_tab( get_current_screen()->set_help_sidebar( '

' . __( 'For more information:' ) . '

' . - '

' . __( 'Documentation on Creating a Network' ) . '

' . - '

' . __( 'Documentation on the Network Screen' ) . '

' . + '

' . __( 'Documentation on Creating a Network' ) . '

' . + '

' . __( 'Documentation on the Network Screen' ) . '

' . '

' . __( 'Support' ) . '

' ); diff --git a/wp-admin/network/index.php b/wp-admin/network/index.php index 829a7eb723..fbc169bd21 100644 --- a/wp-admin/network/index.php +++ b/wp-admin/network/index.php @@ -52,7 +52,7 @@ get_current_screen()->add_help_tab( get_current_screen()->set_help_sidebar( '

' . __( 'For more information:' ) . '

' . - '

' . __( 'Documentation on the Network Admin' ) . '

' . + '

' . __( 'Documentation on the Network Admin' ) . '

' . '

' . __( 'Support Forums' ) . '

' ); diff --git a/wp-admin/network/site-new.php b/wp-admin/network/site-new.php index 318c7b4464..37a266be6a 100644 --- a/wp-admin/network/site-new.php +++ b/wp-admin/network/site-new.php @@ -29,7 +29,7 @@ get_current_screen()->add_help_tab( get_current_screen()->set_help_sidebar( '

' . __( 'For more information:' ) . '

' . - '

' . __( 'Documentation on Site Management' ) . '

' . + '

' . __( 'Documentation on Site Management' ) . '

' . '

' . __( 'Support Forums' ) . '

' ); diff --git a/wp-admin/network/sites.php b/wp-admin/network/sites.php index 5d4d0882b4..fa6684b794 100644 --- a/wp-admin/network/sites.php +++ b/wp-admin/network/sites.php @@ -42,7 +42,7 @@ get_current_screen()->add_help_tab( get_current_screen()->set_help_sidebar( '

' . __( 'For more information:' ) . '

' . - '

' . __( 'Documentation on Site Management' ) . '

' . + '

' . __( 'Documentation on Site Management' ) . '

' . '

' . __( 'Support Forums' ) . '

' ); diff --git a/wp-admin/network/upgrade.php b/wp-admin/network/upgrade.php index e391b2ff1d..06d96d4d18 100644 --- a/wp-admin/network/upgrade.php +++ b/wp-admin/network/upgrade.php @@ -28,7 +28,7 @@ get_current_screen()->add_help_tab( get_current_screen()->set_help_sidebar( '

' . __( 'For more information:' ) . '

' . - '

' . __( 'Documentation on Upgrade Network' ) . '

' . + '

' . __( 'Documentation on Upgrade Network' ) . '

' . '

' . __( 'Support' ) . '

' ); diff --git a/wp-admin/options-discussion.php b/wp-admin/options-discussion.php index bde50b9ec5..7b56ce5025 100644 --- a/wp-admin/options-discussion.php +++ b/wp-admin/options-discussion.php @@ -28,7 +28,7 @@ get_current_screen()->add_help_tab( get_current_screen()->set_help_sidebar( '

' . __( 'For more information:' ) . '

' . - '

' . __( 'Documentation on Discussion Settings' ) . '

' . + '

' . __( 'Documentation on Discussion Settings' ) . '

' . '

' . __( 'Support' ) . '

' ); diff --git a/wp-admin/options-general.php b/wp-admin/options-general.php index 93ebb71164..246b880c68 100644 --- a/wp-admin/options-general.php +++ b/wp-admin/options-general.php @@ -45,7 +45,7 @@ get_current_screen()->add_help_tab( get_current_screen()->set_help_sidebar( '

' . __( 'For more information:' ) . '

' . - '

' . __( 'Documentation on General Settings' ) . '

' . + '

' . __( 'Documentation on General Settings' ) . '

' . '

' . __( 'Support' ) . '

' ); @@ -97,7 +97,7 @@ if ( ! is_multisite() ) { printf( /* translators: %s: Codex URL */ __( 'Enter the address here if you want your site home page to be different from your WordPress installation directory.' ), - __( 'https://codex.wordpress.org/Giving_WordPress_Its_Own_Directory' ) + __( 'https://wordpress.org/support/article/giving-wordpress-its-own-directory/' ) ); ?>

@@ -376,7 +376,7 @@ foreach ( $time_formats as $format ) { '

' . __( 'Preview:' ) . ' ' . date_i18n( get_option( 'time_format' ) ) . '' . "\n" . '

'; - echo "\t

" . __( 'Documentation on date and time formatting.' ) . "

\n"; + echo "\t

" . __( 'Documentation on date and time formatting.' ) . "

\n"; ?> diff --git a/wp-admin/options-media.php b/wp-admin/options-media.php index 7373cb5d69..4cc5e4c5ef 100644 --- a/wp-admin/options-media.php +++ b/wp-admin/options-media.php @@ -34,7 +34,7 @@ get_current_screen()->add_help_tab( get_current_screen()->set_help_sidebar( '

' . __( 'For more information:' ) . '

' . - '

' . __( 'Documentation on Media Settings' ) . '

' . + '

' . __( 'Documentation on Media Settings' ) . '

' . '

' . __( 'Support' ) . '

' ); diff --git a/wp-admin/options-permalink.php b/wp-admin/options-permalink.php index 154209468b..bfd4d8ebb7 100644 --- a/wp-admin/options-permalink.php +++ b/wp-admin/options-permalink.php @@ -48,8 +48,8 @@ get_current_screen()->add_help_tab( get_current_screen()->set_help_sidebar( '

' . __( 'For more information:' ) . '

' . - '

' . __( 'Documentation on Permalinks Settings' ) . '

' . - '

' . __( 'Documentation on Using Permalinks' ) . '

' . + '

' . __( 'Documentation on Permalinks Settings' ) . '

' . + '

' . __( 'Documentation on Using Permalinks' ) . '

' . '

' . __( 'Support' ) . '

' ); @@ -175,7 +175,7 @@ require( ABSPATH . 'wp-admin/admin-header.php' ); printf( /* translators: %s: Codex URL */ __( '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 number of tags are available, and here are some examples to get you started.' ), - __( 'https://codex.wordpress.org/Using_Permalinks' ) + __( 'https://wordpress.org/support/article/using-permalinks/' ) ); ?>

@@ -376,7 +376,7 @@ printf( __( 'If you like, you may enter custom structures for your category and -

Documentation on Nginx configuration.' ); ?>

+

Documentation on Nginx configuration.' ); ?>

add_help_tab( get_current_screen()->set_help_sidebar( '

' . __( 'For more information:' ) . '

' . - '

' . __( 'Documentation on Reading Settings' ) . '

' . + '

' . __( 'Documentation on Reading Settings' ) . '

' . '

' . __( 'Support' ) . '

' ); diff --git a/wp-admin/options-writing.php b/wp-admin/options-writing.php index a5207a32f2..b2315284e9 100644 --- a/wp-admin/options-writing.php +++ b/wp-admin/options-writing.php @@ -49,7 +49,7 @@ if ( apply_filters( 'enable_update_services_configuration', true ) ) { get_current_screen()->set_help_sidebar( '

' . __( 'For more information:' ) . '

' . - '

' . __( 'Documentation on Writing Settings' ) . '

' . + '

' . __( 'Documentation on Writing Settings' ) . '

' . '

' . __( 'Support' ) . '

' ); diff --git a/wp-admin/options.php b/wp-admin/options.php index 6d4ff96482..18607db670 100644 --- a/wp-admin/options.php +++ b/wp-admin/options.php @@ -267,7 +267,7 @@ if ( 'update' == $action ) { '2.7.0', sprintf( /* translators: %s: the option/setting */ - __( 'The %s setting is unregistered. Unregistered settings are deprecated. See https://codex.wordpress.org/Settings_API' ), + __( 'The %s setting is unregistered. Unregistered settings are deprecated. See https://developer.wordpress.org/plugins/settings/settings-api/' ), '' . $option . '' ) ); diff --git a/wp-admin/plugin-editor.php b/wp-admin/plugin-editor.php index 8903987296..692d0f7b43 100644 --- a/wp-admin/plugin-editor.php +++ b/wp-admin/plugin-editor.php @@ -138,8 +138,8 @@ if ( ! is_file( $real_file ) ) { get_current_screen()->set_help_sidebar( '

' . __( 'For more information:' ) . '

' . - '

' . __( 'Documentation on Editing Plugins' ) . '

' . - '

' . __( 'Documentation on Writing Plugins' ) . '

' . + '

' . __( 'Documentation on Editing Plugins' ) . '

' . + '

' . __( 'Documentation on Writing Plugins' ) . '

' . '

' . __( 'Support' ) . '

' ); diff --git a/wp-admin/plugin-install.php b/wp-admin/plugin-install.php index f7b723c7e7..19e39fffb8 100644 --- a/wp-admin/plugin-install.php +++ b/wp-admin/plugin-install.php @@ -102,7 +102,7 @@ get_current_screen()->add_help_tab( get_current_screen()->set_help_sidebar( '

' . __( 'For more information:' ) . '

' . - '

' . __( 'Documentation on Installing Plugins' ) . '

' . + '

' . __( 'Documentation on Installing Plugins' ) . '

' . '

' . __( 'Support' ) . '

' ); diff --git a/wp-admin/plugins.php b/wp-admin/plugins.php index 8de8e9d50f..30f591383f 100644 --- a/wp-admin/plugins.php +++ b/wp-admin/plugins.php @@ -463,7 +463,7 @@ get_current_screen()->add_help_tab( get_current_screen()->set_help_sidebar( '

' . __( 'For more information:' ) . '

' . - '

' . __( 'Documentation on Managing Plugins' ) . '

' . + '

' . __( 'Documentation on Managing Plugins' ) . '

' . '

' . __( 'Support' ) . '

' ); diff --git a/wp-admin/revision.php b/wp-admin/revision.php index c5cece4cc6..7325709b70 100644 --- a/wp-admin/revision.php +++ b/wp-admin/revision.php @@ -142,7 +142,7 @@ get_current_screen()->add_help_tab( ); $revisions_sidebar = '

' . __( 'For more information:' ) . '

'; -$revisions_sidebar .= '

' . __( 'Revisions Management' ) . '

'; +$revisions_sidebar .= '

' . __( 'Revisions Management' ) . '

'; $revisions_sidebar .= '

' . __( 'Support' ) . '

'; get_current_screen()->set_help_sidebar( $revisions_sidebar ); diff --git a/wp-admin/setup-config.php b/wp-admin/setup-config.php index 226b551ffb..ab7cfd921d 100644 --- a/wp-admin/setup-config.php +++ b/wp-admin/setup-config.php @@ -189,7 +189,7 @@ switch ( $step ) { /* translators: %s: Codex URL */ printf( __( 'Need more help? We got it.' ), - __( 'https://codex.wordpress.org/Editing_wp-config.php' ) + __( 'https://wordpress.org/support/article/editing-wp-config-php/' ) ); ?>

diff --git a/wp-admin/theme-editor.php b/wp-admin/theme-editor.php index 7faaca0114..5592ca1ab1 100644 --- a/wp-admin/theme-editor.php +++ b/wp-admin/theme-editor.php @@ -48,10 +48,10 @@ get_current_screen()->add_help_tab( get_current_screen()->set_help_sidebar( '

' . __( 'For more information:' ) . '

' . - '

' . __( 'Documentation on Theme Development' ) . '

' . - '

' . __( 'Documentation on Using Themes' ) . '

' . - '

' . __( 'Documentation on Editing Files' ) . '

' . - '

' . __( 'Documentation on Template Tags' ) . '

' . + '

' . __( 'Documentation on Theme Development' ) . '

' . + '

' . __( 'Documentation on Using Themes' ) . '

' . + '

' . __( 'Documentation on Editing Files' ) . '

' . + '

' . __( 'Documentation on Template Tags' ) . '

' . '

' . __( 'Support' ) . '

' ); diff --git a/wp-admin/theme-install.php b/wp-admin/theme-install.php index 422b73c7a1..9c718de133 100644 --- a/wp-admin/theme-install.php +++ b/wp-admin/theme-install.php @@ -126,7 +126,7 @@ get_current_screen()->add_help_tab( get_current_screen()->set_help_sidebar( '

' . __( 'For more information:' ) . '

' . - '

' . __( 'Documentation on Adding New Themes' ) . '

' . + '

' . __( 'Documentation on Adding New Themes' ) . '

' . '

' . __( 'Support' ) . '

' ); diff --git a/wp-admin/themes.php b/wp-admin/themes.php index ec85f3ed4e..6aa36a8054 100644 --- a/wp-admin/themes.php +++ b/wp-admin/themes.php @@ -141,7 +141,7 @@ if ( current_user_can( 'edit_theme_options' ) && current_user_can( 'customize' ) get_current_screen()->set_help_sidebar( '

' . __( 'For more information:' ) . '

' . - '

' . __( 'Documentation on Using Themes' ) . '

' . + '

' . __( 'Documentation on Using Themes' ) . '

' . '

' . __( 'Support' ) . '

' ); diff --git a/wp-admin/tools.php b/wp-admin/tools.php index 786d4cf62b..6ff613ba2a 100644 --- a/wp-admin/tools.php +++ b/wp-admin/tools.php @@ -49,7 +49,7 @@ get_current_screen()->add_help_tab( get_current_screen()->set_help_sidebar( '

' . __( 'For more information:' ) . '

' . - '

' . __( 'Documentation on Tools' ) . '

' . + '

' . __( 'Documentation on Tools' ) . '

' . '

' . __( 'Support' ) . '

' ); diff --git a/wp-admin/update-core.php b/wp-admin/update-core.php index c6e95a35a9..a8930c47ca 100644 --- a/wp-admin/update-core.php +++ b/wp-admin/update-core.php @@ -210,7 +210,7 @@ function core_upgrade_preamble() { if ( isset( $updates[0]->version ) && version_compare( $updates[0]->version, $wp_version, '>' ) ) { echo '

'; - _e( 'Important: Before updating, please back up your database and files. For help with updates, visit the Updating WordPress Codex page.' ); + _e( 'Important: Before updating, please back up your database and files. For help with updates, visit the Updating WordPress documentation page.' ); echo '

'; echo '

'; @@ -664,7 +664,7 @@ get_current_screen()->add_help_tab( get_current_screen()->set_help_sidebar( '

' . __( 'For more information:' ) . '

' . - '

' . __( 'Documentation on Updating WordPress' ) . '

' . + '

' . __( 'Documentation on Updating WordPress' ) . '

' . '

' . __( 'Support' ) . '

' ); diff --git a/wp-admin/upload.php b/wp-admin/upload.php index eef2a4f31f..2ea4904f63 100644 --- a/wp-admin/upload.php +++ b/wp-admin/upload.php @@ -72,7 +72,7 @@ if ( 'grid' === $mode ) { get_current_screen()->set_help_sidebar( '

' . __( 'For more information:' ) . '

' . - '

' . __( 'Documentation on Media Library' ) . '

' . + '

' . __( 'Documentation on Media Library' ) . '

' . '

' . __( 'Support' ) . '

' ); @@ -247,7 +247,7 @@ get_current_screen()->add_help_tab( get_current_screen()->set_help_sidebar( '

' . __( 'For more information:' ) . '

' . - '

' . __( 'Documentation on Media Library' ) . '

' . + '

' . __( 'Documentation on Media Library' ) . '

' . '

' . __( 'Support' ) . '

' ); diff --git a/wp-admin/user-edit.php b/wp-admin/user-edit.php index 8fe3af379d..2da783da95 100644 --- a/wp-admin/user-edit.php +++ b/wp-admin/user-edit.php @@ -64,7 +64,7 @@ get_current_screen()->add_help_tab( get_current_screen()->set_help_sidebar( '

' . __( 'For more information:' ) . '

' . - '

' . __( 'Documentation on User Profiles' ) . '

' . + '

' . __( 'Documentation on User Profiles' ) . '

' . '

' . __( 'Support' ) . '

' ); @@ -308,7 +308,7 @@ endif; // $_wp_admin_css_colors ?> - More information' ); ?> + More information' ); ?> diff --git a/wp-admin/user-new.php b/wp-admin/user-new.php index 74d327fa29..ef52612418 100644 --- a/wp-admin/user-new.php +++ b/wp-admin/user-new.php @@ -252,7 +252,7 @@ get_current_screen()->add_help_tab( get_current_screen()->set_help_sidebar( '

' . __( 'For more information:' ) . '

' . - '

' . __( 'Documentation on Adding New Users' ) . '

' . + '

' . __( 'Documentation on Adding New Users' ) . '

' . '

' . __( 'Support' ) . '

' ); diff --git a/wp-admin/users.php b/wp-admin/users.php index fd209b03ae..31f2bd9398 100644 --- a/wp-admin/users.php +++ b/wp-admin/users.php @@ -71,8 +71,8 @@ unset( $help ); get_current_screen()->set_help_sidebar( '

' . __( 'For more information:' ) . '

' . - '

' . __( 'Documentation on Managing Users' ) . '

' . - '

' . __( 'Descriptions of Roles and Capabilities' ) . '

' . + '

' . __( 'Documentation on Managing Users' ) . '

' . + '

' . __( 'Descriptions of Roles and Capabilities' ) . '

' . '

' . __( 'Support' ) . '

' ); diff --git a/wp-admin/widgets.php b/wp-admin/widgets.php index 5e5eff5323..68b3004a04 100644 --- a/wp-admin/widgets.php +++ b/wp-admin/widgets.php @@ -80,12 +80,12 @@ get_current_screen()->add_help_tab( get_current_screen()->set_help_sidebar( '

' . __( 'For more information:' ) . '

' . - '

' . __( 'Documentation on Widgets' ) . '

' . + '

' . __( 'Documentation on Widgets' ) . '

' . '

' . __( 'Support' ) . '

' ); if ( ! current_theme_supports( 'widgets' ) ) { - wp_die( __( 'The theme you are currently using isn’t widget-aware, meaning that it has no sidebars that you are able to change. For information on making your theme widget-aware, please follow these instructions.' ) ); + wp_die( __( 'The theme you are currently using isn’t widget-aware, meaning that it has no sidebars that you are able to change. For information on making your theme widget-aware, please follow these instructions.' ) ); } // These are the widgets grouped by sidebar diff --git a/wp-includes/author-template.php b/wp-includes/author-template.php index 196f25fa62..137ede817d 100644 --- a/wp-includes/author-template.php +++ b/wp-includes/author-template.php @@ -50,7 +50,7 @@ function get_the_author( $deprecated = '' ) { * * @since 0.71 * @see get_the_author() - * @link https://codex.wordpress.org/Template_Tags/the_author + * @link https://developer.wordpress.org/reference/functions/the_author/ * * @param string $deprecated Deprecated. * @param bool $deprecated_echo Deprecated. Use get_the_author(). Echo the string or return it. @@ -246,7 +246,7 @@ function get_the_author_link() { * If the author has a home page set, echo an HTML link, otherwise just echo the * author's name. * - * @link https://codex.wordpress.org/Template_Tags/the_author_link + * @link https://developer.wordpress.org/reference/functions/the_author_link/ * * @since 2.1.0 */ @@ -272,7 +272,7 @@ function get_the_author_posts() { /** * Display the number of posts by the author of the current post. * - * @link https://codex.wordpress.org/Template_Tags/the_author_posts + * @link https://developer.wordpress.org/reference/functions/the_author_posts/ * @since 0.71 */ function the_author_posts() { @@ -376,7 +376,7 @@ function get_author_posts_url( $author_id, $author_nicename = '' ) { /** * List all the authors of the site, with several options available. * - * @link https://codex.wordpress.org/Template_Tags/wp_list_authors + * @link https://developer.wordpress.org/reference/functions/wp_list_authors/ * * @since 1.2.0 * diff --git a/wp-includes/class-wp-oembed.php b/wp-includes/class-wp-oembed.php index dce67fcb41..d64bb079bd 100644 --- a/wp-includes/class-wp-oembed.php +++ b/wp-includes/class-wp-oembed.php @@ -4,8 +4,8 @@ * * Used internally by the WP_Embed class, but is designed to be generic. * - * @link https://codex.wordpress.org/oEmbed oEmbed Codex Article - * @link http://oembed.com/ oEmbed Homepage + * @link https://wordpress.org/support/article/embeds/ + * @link http://oembed.com/ * * @package WordPress * @subpackage oEmbed diff --git a/wp-includes/class-wp-query.php b/wp-includes/class-wp-query.php index 3d7374cf93..50bb7f6418 100644 --- a/wp-includes/class-wp-query.php +++ b/wp-includes/class-wp-query.php @@ -10,7 +10,7 @@ /** * The WordPress Query class. * - * @link https://codex.wordpress.org/Function_Reference/WP_Query Codex page. + * @link https://developer.wordpress.org/reference/classes/wp_query/ * * @since 1.5.0 * @since 4.5.0 Removed the `$comments_popup` property. diff --git a/wp-includes/comment.php b/wp-includes/comment.php index 3ac8b3f763..a469b90c57 100644 --- a/wp-includes/comment.php +++ b/wp-includes/comment.php @@ -434,7 +434,7 @@ function get_comment_count( $post_id = 0 ) { * Add meta data field to a comment. * * @since 2.9.0 - * @link https://codex.wordpress.org/Function_Reference/add_comment_meta + * @link https://developer.wordpress.org/reference/functions/add_comment_meta/ * * @param int $comment_id Comment ID. * @param string $meta_key Metadata name. @@ -454,7 +454,7 @@ function add_comment_meta( $comment_id, $meta_key, $meta_value, $unique = false * allows removing all metadata matching key, if needed. * * @since 2.9.0 - * @link https://codex.wordpress.org/Function_Reference/delete_comment_meta + * @link https://developer.wordpress.org/reference/functions/delete_comment_meta/ * * @param int $comment_id comment ID * @param string $meta_key Metadata name. @@ -469,7 +469,7 @@ function delete_comment_meta( $comment_id, $meta_key, $meta_value = '' ) { * Retrieve comment meta field for a comment. * * @since 2.9.0 - * @link https://codex.wordpress.org/Function_Reference/get_comment_meta + * @link https://developer.wordpress.org/reference/functions/get_comment_meta/ * * @param int $comment_id Comment ID. * @param string $key Optional. The meta key to retrieve. By default, returns data for all keys. @@ -490,7 +490,7 @@ function get_comment_meta( $comment_id, $key = '', $single = false ) { * If the meta field for the comment does not exist, it will be added. * * @since 2.9.0 - * @link https://codex.wordpress.org/Function_Reference/update_comment_meta + * @link https://developer.wordpress.org/reference/functions/update_comment_meta/ * * @param int $comment_id Comment ID. * @param string $meta_key Metadata key. diff --git a/wp-includes/cron.php b/wp-includes/cron.php index 5d26dd8df1..2afe56b923 100644 --- a/wp-includes/cron.php +++ b/wp-includes/cron.php @@ -24,7 +24,7 @@ * @since 5.1.0 Return value modified to boolean indicating success or failure, * {@see 'pre_schedule_event'} filter added to short-circuit the function. * - * @link https://codex.wordpress.org/Function_Reference/wp_schedule_single_event + * @link https://developer.wordpress.org/reference/functions/wp_schedule_single_event/ * * @param int $timestamp Unix timestamp (UTC) for when to next run the event. * @param string $hook Action hook to execute when the event is run. @@ -177,7 +177,7 @@ function wp_schedule_single_event( $timestamp, $hook, $args = array() ) { * @since 5.1.0 Return value modified to boolean indicating success or failure, * {@see 'pre_schedule_event'} filter added to short-circuit the function. * - * @link https://codex.wordpress.org/Function_Reference/wp_schedule_event + * @link https://developer.wordpress.org/reference/functions/wp_schedule_event/ * * @param int $timestamp Unix timestamp (UTC) for when to next run the event. * @param string $recurrence How often the event should subsequently recur. See wp_get_schedules() for accepted values. diff --git a/wp-includes/customize/class-wp-customize-nav-menu-locations-control.php b/wp-includes/customize/class-wp-customize-nav-menu-locations-control.php index cda6c7f73a..cadcf5a664 100644 --- a/wp-includes/customize/class-wp-customize-nav-menu-locations-control.php +++ b/wp-includes/customize/class-wp-customize-nav-menu-locations-control.php @@ -51,7 +51,7 @@ class WP_Customize_Nav_Menu_Locations_Control extends WP_Customize_Control { printf( /* translators: 1: Codex URL, 2: additional link attributes, 3: accessibility text */ _x( '(If you plan to use a menu widget%3$s, skip this step.)', 'menu locations' ), - __( 'https://codex.wordpress.org/WordPress_Widgets' ), + __( 'https://wordpress.org/support/article/wordpress-widgets/' ), ' class="external-link" target="_blank"', sprintf( ' %s', diff --git a/wp-includes/date.php b/wp-includes/date.php index eb134aade0..716b44215e 100644 --- a/wp-includes/date.php +++ b/wp-includes/date.php @@ -10,7 +10,7 @@ * return no results. In these cases, a _doing_it_wrong() error notice is also thrown. * See WP_Date_Query::validate_date_values(). * - * @link https://codex.wordpress.org/Function_Reference/WP_Query Codex page. + * @link https://developer.wordpress.org/reference/classes/wp_query/ * * @since 3.7.0 */ diff --git a/wp-includes/deprecated.php b/wp-includes/deprecated.php index 387524f80e..43295d90af 100644 --- a/wp-includes/deprecated.php +++ b/wp-includes/deprecated.php @@ -53,7 +53,7 @@ function get_postdata($postid) { * * Use The Loop instead. * - * @link https://codex.wordpress.org/The_Loop + * @link https://developer.wordpress.org/themes/basics/the-loop/ * * @since 1.0.1 * @deprecated 1.5.0 @@ -1279,7 +1279,7 @@ function get_category_children( $id, $before = '/', $after = '', $visited = arra * @deprecated 4.0.0 Use get_terms() * @see get_terms() * - * @link https://codex.wordpress.org/Function_Reference/get_all_category_ids + * @link https://developer.wordpress.org/reference/functions/get_all_category_ids/ * * @return object List of all of the category IDs. */ diff --git a/wp-includes/formatting.php b/wp-includes/formatting.php index b5240745ac..81327b882f 100644 --- a/wp-includes/formatting.php +++ b/wp-includes/formatting.php @@ -4693,7 +4693,7 @@ function sanitize_option( $option, $value ) { $error = sprintf( /* translators: %s: Codex URL */ __( 'A structure tag is required when using custom permalinks. Learn more' ), - __( 'https://codex.wordpress.org/Using_Permalinks#Choosing_your_permalink_structure' ) + __( 'https://wordpress.org/support/article/using-permalinks/#choosing-your-permalink-structure' ) ); } break; diff --git a/wp-includes/functions.php b/wp-includes/functions.php index 5a3447f517..5d3e490cb0 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -4792,7 +4792,7 @@ function _doing_it_wrong( $function, $message, $version ) { /* translators: %s: Codex URL */ $message .= ' ' . sprintf( __( 'Please see Debugging in WordPress for more information.' ), - __( 'https://codex.wordpress.org/Debugging_in_WordPress' ) + __( 'https://wordpress.org/support/article/debugging-in-wordpress/' ) ); /* translators: Developer debugging message. 1: PHP function name, 2: Explanatory message, 3: Version information message */ trigger_error( sprintf( __( '%1$s was called incorrectly. %2$s %3$s' ), $function, $message, $version ) ); @@ -4804,7 +4804,7 @@ function _doing_it_wrong( $function, $message, $version ) { } $message .= sprintf( ' Please see Debugging in WordPress for more information.', - 'https://codex.wordpress.org/Debugging_in_WordPress' + 'https://wordpress.org/support/article/debugging-in-wordpress/' ); trigger_error( sprintf( '%1$s was called incorrectly. %2$s %3$s', $function, $message, $version ) ); } diff --git a/wp-includes/ms-load.php b/wp-includes/ms-load.php index 61d02bd920..056fccc789 100644 --- a/wp-includes/ms-load.php +++ b/wp-includes/ms-load.php @@ -492,7 +492,7 @@ function ms_not_installed( $domain, $path ) { /* translators: %s: Codex URL */ $msg .= sprintf( __( 'Read the bug report page. Some of the guidelines there may help you figure out what went wrong.' ), - __( 'https://codex.wordpress.org/Debugging_a_WordPress_Network' ) + __( 'https://wordpress.org/support/article/debugging-a-wordpress-network/' ) ); $msg .= ' ' . __( 'If you’re still stuck with this message, then check that your database contains the following tables:' ) . '