From a29a0e05d15f2b979b7efcf89bbcb44e0f8121e6 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 6 Jun 2022 10:51:12 +0000 Subject: [PATCH] Docs: Correct method reference format in some DocBlocks. This ensures that the methods are recognized by the WordPress Code Reference parser. Follow-up to [7994], [25567], [27156], [28887], [49672], [52226]. Props dd32, audrasjb. Fixes #55928. Built from https://develop.svn.wordpress.org/trunk@53469 git-svn-id: http://core.svn.wordpress.org/trunk@53058 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-wp-comment-query.php | 10 +++++----- wp-includes/class-wp-http-streams.php | 2 +- wp-includes/class-wp-query.php | 12 ++++++------ wp-includes/class-wp-site-query.php | 10 +++++----- wp-includes/class-wp-term-query.php | 10 +++++----- wp-includes/class-wp-user-query.php | 10 +++++----- wp-includes/comment-template.php | 2 +- wp-includes/general-template.php | 2 +- wp-includes/version.php | 2 +- 9 files changed, 30 insertions(+), 30 deletions(-) diff --git a/wp-includes/class-wp-comment-query.php b/wp-includes/class-wp-comment-query.php index dede872bb7..6f317b57c2 100644 --- a/wp-includes/class-wp-comment-query.php +++ b/wp-includes/class-wp-comment-query.php @@ -168,15 +168,15 @@ class WP_Comment_Query { * @type string|string[] $meta_key Meta key or keys to filter by. * @type string|string[] $meta_value Meta value or values to filter by. * @type string $meta_compare MySQL operator used for comparing the meta value. - * See WP_Meta_Query::__construct for accepted values and default value. + * See WP_Meta_Query::__construct() for accepted values and default value. * @type string $meta_compare_key MySQL operator used for comparing the meta key. - * See WP_Meta_Query::__construct for accepted values and default value. + * See WP_Meta_Query::__construct() for accepted values and default value. * @type string $meta_type MySQL data type that the meta_value column will be CAST to for comparisons. - * See WP_Meta_Query::__construct for accepted values and default value. + * See WP_Meta_Query::__construct() for accepted values and default value. * @type string $meta_type_key MySQL data type that the meta_key column will be CAST to for comparisons. - * See WP_Meta_Query::__construct for accepted values and default value. + * See WP_Meta_Query::__construct() for accepted values and default value. * @type array $meta_query An associative array of WP_Meta_Query arguments. - * See WP_Meta_Query::__construct for accepted values. + * See WP_Meta_Query::__construct() for accepted values. * @type int $number Maximum number of comments to retrieve. * Default empty (no limit). * @type int $paged When used with `$number`, defines the page of results to return. diff --git a/wp-includes/class-wp-http-streams.php b/wp-includes/class-wp-http-streams.php index c3c91681a6..a5d0694da3 100644 --- a/wp-includes/class-wp-http-streams.php +++ b/wp-includes/class-wp-http-streams.php @@ -17,7 +17,7 @@ class WP_Http_Streams { /** * Send a HTTP request to a URI using PHP Streams. * - * @see WP_Http::request For default options descriptions. + * @see WP_Http::request() For default options descriptions. * * @since 2.7.0 * @since 3.7.0 Combined with the fsockopen transport and switched to stream_socket_client(). diff --git a/wp-includes/class-wp-query.php b/wp-includes/class-wp-query.php index e7eda7bab7..e290bbf27b 100644 --- a/wp-includes/class-wp-query.php +++ b/wp-includes/class-wp-query.php @@ -668,15 +668,15 @@ class WP_Query { * @type string|string[] $meta_key Meta key or keys to filter by. * @type string|string[] $meta_value Meta value or values to filter by. * @type string $meta_compare MySQL operator used for comparing the meta value. - * See WP_Meta_Query::__construct for accepted values and default value. + * See WP_Meta_Query::__construct() for accepted values and default value. * @type string $meta_compare_key MySQL operator used for comparing the meta key. - * See WP_Meta_Query::__construct for accepted values and default value. + * See WP_Meta_Query::__construct() for accepted values and default value. * @type string $meta_type MySQL data type that the meta_value column will be CAST to for comparisons. - * See WP_Meta_Query::__construct for accepted values and default value. + * See WP_Meta_Query::__construct() for accepted values and default value. * @type string $meta_type_key MySQL data type that the meta_key column will be CAST to for comparisons. - * See WP_Meta_Query::__construct for accepted values and default value. + * See WP_Meta_Query::__construct() for accepted values and default value. * @type array $meta_query An associative array of WP_Meta_Query arguments. - * See WP_Meta_Query::__construct for accepted values. + * See WP_Meta_Query::__construct() for accepted values. * @type int $menu_order The menu order of the posts. * @type int $minute Minute of the hour. Default empty. Accepts numbers 0-59. * @type int $monthnum The two-digit month. Default empty. Accepts numbers 1-12. @@ -752,7 +752,7 @@ class WP_Query { * @type string[] $tag_slug__in An array of tag slugs (OR in). unless 'ignore_sticky_posts' is * true. Note: a string of comma-separated IDs will NOT work. * @type array $tax_query An associative array of WP_Tax_Query arguments. - * See WP_Tax_Query->__construct(). + * See WP_Tax_Query::__construct(). * @type string $title Post title. * @type bool $update_post_meta_cache Whether to update the post meta cache. Default true. * @type bool $update_post_term_cache Whether to update the post term cache. Default true. diff --git a/wp-includes/class-wp-site-query.php b/wp-includes/class-wp-site-query.php index 76c38babd5..97158a2f2a 100644 --- a/wp-includes/class-wp-site-query.php +++ b/wp-includes/class-wp-site-query.php @@ -173,15 +173,15 @@ class WP_Site_Query { * @type string|string[] $meta_key Meta key or keys to filter by. * @type string|string[] $meta_value Meta value or values to filter by. * @type string $meta_compare MySQL operator used for comparing the meta value. - * See WP_Meta_Query::__construct for accepted values and default value. + * See WP_Meta_Query::__construct() for accepted values and default value. * @type string $meta_compare_key MySQL operator used for comparing the meta key. - * See WP_Meta_Query::__construct for accepted values and default value. + * See WP_Meta_Query::__construct() for accepted values and default value. * @type string $meta_type MySQL data type that the meta_value column will be CAST to for comparisons. - * See WP_Meta_Query::__construct for accepted values and default value. + * See WP_Meta_Query::__construct() for accepted values and default value. * @type string $meta_type_key MySQL data type that the meta_key column will be CAST to for comparisons. - * See WP_Meta_Query::__construct for accepted values and default value. + * See WP_Meta_Query::__construct() for accepted values and default value. * @type array $meta_query An associative array of WP_Meta_Query arguments. - * See WP_Meta_Query::__construct for accepted values. + * See WP_Meta_Query::__construct() for accepted values. * } */ public function __construct( $query = '' ) { diff --git a/wp-includes/class-wp-term-query.php b/wp-includes/class-wp-term-query.php index 5f35a9db68..aa1da24617 100644 --- a/wp-includes/class-wp-term-query.php +++ b/wp-includes/class-wp-term-query.php @@ -181,15 +181,15 @@ class WP_Term_Query { * @type string|string[] $meta_key Meta key or keys to filter by. * @type string|string[] $meta_value Meta value or values to filter by. * @type string $meta_compare MySQL operator used for comparing the meta value. - * See WP_Meta_Query::__construct for accepted values and default value. + * See WP_Meta_Query::__construct() for accepted values and default value. * @type string $meta_compare_key MySQL operator used for comparing the meta key. - * See WP_Meta_Query::__construct for accepted values and default value. + * See WP_Meta_Query::__construct() for accepted values and default value. * @type string $meta_type MySQL data type that the meta_value column will be CAST to for comparisons. - * See WP_Meta_Query::__construct for accepted values and default value. + * See WP_Meta_Query::__construct() for accepted values and default value. * @type string $meta_type_key MySQL data type that the meta_key column will be CAST to for comparisons. - * See WP_Meta_Query::__construct for accepted values and default value. + * See WP_Meta_Query::__construct() for accepted values and default value. * @type array $meta_query An associative array of WP_Meta_Query arguments. - * See WP_Meta_Query::__construct for accepted values. + * See WP_Meta_Query::__construct() for accepted values. * } */ public function __construct( $query = '' ) { diff --git a/wp-includes/class-wp-user-query.php b/wp-includes/class-wp-user-query.php index d526de1cca..a40d4103dc 100644 --- a/wp-includes/class-wp-user-query.php +++ b/wp-includes/class-wp-user-query.php @@ -157,15 +157,15 @@ class WP_User_Query { * @type string|string[] $meta_key Meta key or keys to filter by. * @type string|string[] $meta_value Meta value or values to filter by. * @type string $meta_compare MySQL operator used for comparing the meta value. - * See WP_Meta_Query::__construct for accepted values and default value. + * See WP_Meta_Query::__construct() for accepted values and default value. * @type string $meta_compare_key MySQL operator used for comparing the meta key. - * See WP_Meta_Query::__construct for accepted values and default value. + * See WP_Meta_Query::__construct() for accepted values and default value. * @type string $meta_type MySQL data type that the meta_value column will be CAST to for comparisons. - * See WP_Meta_Query::__construct for accepted values and default value. + * See WP_Meta_Query::__construct() for accepted values and default value. * @type string $meta_type_key MySQL data type that the meta_key column will be CAST to for comparisons. - * See WP_Meta_Query::__construct for accepted values and default value. + * See WP_Meta_Query::__construct() for accepted values and default value. * @type array $meta_query An associative array of WP_Meta_Query arguments. - * See WP_Meta_Query::__construct for accepted values. + * See WP_Meta_Query::__construct() for accepted values. * @type string|string[] $capability An array or a comma-separated list of capability names that users must match * to be included in results. Note that this is an inclusive list: users * must match *each* capability. diff --git a/wp-includes/comment-template.php b/wp-includes/comment-template.php index 3d49965d20..9572333f27 100644 --- a/wp-includes/comment-template.php +++ b/wp-includes/comment-template.php @@ -2033,7 +2033,7 @@ function comment_form_title( $no_reply_text = false, $reply_text = false, $link_ * * @since 2.7.0 * - * @see WP_Query->comments + * @see WP_Query::$comments * * @global WP_Query $wp_query WordPress Query object. * @global int $comment_alt diff --git a/wp-includes/general-template.php b/wp-includes/general-template.php index 6ab4f4dd39..a26f832832 100644 --- a/wp-includes/general-template.php +++ b/wp-includes/general-template.php @@ -4559,7 +4559,7 @@ function register_admin_color_schemes() { /** * Displays the URL of a WordPress admin CSS file. * - * @see WP_Styles::_css_href and its {@see 'style_loader_src'} filter. + * @see WP_Styles::_css_href() and its {@see 'style_loader_src'} filter. * * @since 2.3.0 * diff --git a/wp-includes/version.php b/wp-includes/version.php index 49cad12394..908c1091ff 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.1-alpha-53468'; +$wp_version = '6.1-alpha-53469'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.