General: First pass at replacing Codex URLs with a corresponding HelpHub or DevHub article.

Props ianbelanger, tobifjellner, SergeyBiryukov.
See #47771.

git-svn-id: https://develop.svn.wordpress.org/trunk@45674 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov
2019-07-25 22:44:48 +00:00
parent 77a1f39484
commit ae8a620efb
64 changed files with 106 additions and 106 deletions

View File

@@ -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
*

View File

@@ -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

View File

@@ -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.

View File

@@ -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.

View File

@@ -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.

View File

@@ -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 <a href="%1$s" %2$s>widget%3$s</a>, skip this step.)', 'menu locations' ),
__( 'https://codex.wordpress.org/WordPress_Widgets' ),
__( 'https://wordpress.org/support/article/wordpress-widgets/' ),
' class="external-link" target="_blank"',
sprintf(
'<span class="screen-reader-text"> %s</span>',

View File

@@ -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
*/

View File

@@ -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.
*/

View File

@@ -4693,7 +4693,7 @@ function sanitize_option( $option, $value ) {
$error = sprintf(
/* translators: %s: Codex URL */
__( 'A structure tag is required when using custom permalinks. <a href="%s">Learn more</a>' ),
__( 'https://codex.wordpress.org/Using_Permalinks#Choosing_your_permalink_structure' )
__( 'https://wordpress.org/support/article/using-permalinks/#choosing-your-permalink-structure' )
);
}
break;

View File

@@ -4792,7 +4792,7 @@ function _doing_it_wrong( $function, $message, $version ) {
/* translators: %s: Codex URL */
$message .= ' ' . sprintf(
__( 'Please see <a href="%s">Debugging in WordPress</a> 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 <strong>incorrectly</strong>. %2$s %3$s' ), $function, $message, $version ) );
@@ -4804,7 +4804,7 @@ function _doing_it_wrong( $function, $message, $version ) {
}
$message .= sprintf(
' Please see <a href="%s">Debugging in WordPress</a> 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 <strong>incorrectly</strong>. %2$s %3$s', $function, $message, $version ) );
}

View File

@@ -492,7 +492,7 @@ function ms_not_installed( $domain, $path ) {
/* translators: %s: Codex URL */
$msg .= sprintf(
__( 'Read the <a href="%s" target="_blank">bug report</a> 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&#8217;re still stuck with this message, then check that your database contains the following tables:' ) . '</p><ul>';
foreach ( $wpdb->tables( 'global' ) as $t => $table ) {

View File

@@ -11,7 +11,7 @@
* {@link https://secure.php.net/manual/en/language.pseudo-types.php#language.types.callback 'callback'}
* type are valid.
*
* Also see the {@link https://codex.wordpress.org/Plugin_API Plugin API} for
* Also see the {@link https://developer.wordpress.org/plugins/ Plugin API} for
* more information and examples on how to use a lot of these functions.
*
* This file should have no external dependencies.

View File

@@ -1565,7 +1565,7 @@ function _post_type_meta_capabilities( $capabilities = null ) {
* by `$post_type_object->label`. Default is 'Posts' / 'Pages'.
* - `singular_name` - Name for one object of this post type. Default is 'Post' / 'Page'.
* - `add_new` - Default is 'Add New' for both hierarchical and non-hierarchical types.
* When internationalizing this string, please use a {@link https://codex.wordpress.org/I18n_for_WordPress_Developers#Disambiguation_by_context gettext context}
* When internationalizing this string, please use a {@link https://developer.wordpress.org/plugins/internationalization/how-to-internationalize-your-plugin/#disambiguation-by-context gettext context}
* matching your post type. Example: `_x( 'Add New', 'product', 'textdomain' );`.
* - `add_new_item` - Label for adding a new singular item. Default is 'Add New Post' / 'Add New Page'.
* - `edit_item` - Label for editing a singular item. Default is 'Edit Post' / 'Edit Page'.

View File

@@ -5,7 +5,7 @@
* The query API attempts to get which part of WordPress the user is on. It
* also provides functionality for getting URL query information.
*
* @link https://codex.wordpress.org/The_Loop More information on The Loop.
* @link https://developer.wordpress.org/themes/basics/the-loop/ More information on The Loop.
*
* @package WordPress
* @subpackage Query

View File

@@ -23,7 +23,7 @@
*
* $out = do_shortcode( $content );
*
* @link https://codex.wordpress.org/Shortcode_API
* @link https://developer.wordpress.org/plugins/shortcodes/
*
* @package WordPress
* @subpackage Shortcodes

View File

@@ -807,7 +807,7 @@ function add_user_meta( $user_id, $meta_key, $meta_value, $unique = false ) {
* allows removing all metadata matching key, if needed.
*
* @since 3.0.0
* @link https://codex.wordpress.org/Function_Reference/delete_user_meta
* @link https://developer.wordpress.org/reference/functions/delete_user_meta/
*
* @param int $user_id User ID
* @param string $meta_key Metadata name.
@@ -822,7 +822,7 @@ function delete_user_meta( $user_id, $meta_key, $meta_value = '' ) {
* Retrieve user meta field for a user.
*
* @since 3.0.0
* @link https://codex.wordpress.org/Function_Reference/get_user_meta
* @link https://developer.wordpress.org/reference/functions/get_user_meta/
*
* @param int $user_id User ID.
* @param string $key Optional. The meta key to retrieve. By default, returns data for all keys.
@@ -842,7 +842,7 @@ function get_user_meta( $user_id, $key = '', $single = false ) {
* If the meta field for the user does not exist, it will be added.
*
* @since 3.0.0
* @link https://codex.wordpress.org/Function_Reference/update_user_meta
* @link https://developer.wordpress.org/reference/functions/update_user_meta/
*
* @param int $user_id User ID.
* @param string $meta_key Metadata key.

View File

@@ -10,7 +10,7 @@
* servers with known pretty permalink capability.
*
* Note: Though Nginx is detected, WordPress does not currently
* generate rewrite rules for it. See https://codex.wordpress.org/Nginx
* generate rewrite rules for it. See https://wordpress.org/support/article/nginx/
*
* @package WordPress
*/

View File

@@ -10,8 +10,8 @@
* 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://codex.wordpress.org/Plugins/WordPress_Widgets WordPress Widgets
* @link https://codex.wordpress.org/Plugins/WordPress_Widgets_Api Widgets API
* @link https://wordpress.org/support/article/wordpress-widgets/
* @link https://developer.wordpress.org/themes/functionality/widgets/
*
* @package WordPress
* @subpackage Widgets