From e01409866e2c7b4e4b2274d26c84b82eb8790b22 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Thu, 17 Sep 2020 11:10:03 +0000 Subject: [PATCH] Docs: Reformat `comments_pre_query`, `networks_pre_query`, `sites_pre_query` DocBlocks for better readability. See #50768. Built from https://develop.svn.wordpress.org/trunk@48986 git-svn-id: http://core.svn.wordpress.org/trunk@48748 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-wp-comment-query.php | 11 +++++++---- wp-includes/class-wp-network-query.php | 11 +++++++---- wp-includes/class-wp-site-query.php | 11 +++++++---- wp-includes/version.php | 2 +- 4 files changed, 22 insertions(+), 13 deletions(-) diff --git a/wp-includes/class-wp-comment-query.php b/wp-includes/class-wp-comment-query.php index 7868c8a58b..c04584b9d1 100644 --- a/wp-includes/class-wp-comment-query.php +++ b/wp-includes/class-wp-comment-query.php @@ -386,10 +386,13 @@ class WP_Comment_Query { * * Return a non-null value to bypass WordPress' default comment queries. * - * The expected return type from this filter depends on the value passed in the request query_vars. - * When `$this->query_vars['count']` is set, the filter should return the comment count as an int. - * When `'ids' === $this->query_vars['fields']`, the filter should return an array of comment IDs. - * Otherwise the filter should return an array of WP_Comment objects. + * The expected return type from this filter depends on the value passed + * in the request query vars: + * - When `$this->query_vars['count']` is set, the filter should return + * the comment count as an integer. + * - When `'ids' === $this->query_vars['fields']`, the filter should return + * an array of comment IDs. + * - Otherwise the filter should return an array of WP_Comment objects. * * @since 5.3.0 * diff --git a/wp-includes/class-wp-network-query.php b/wp-includes/class-wp-network-query.php index 67e574aaf1..bc5a2d6b3a 100644 --- a/wp-includes/class-wp-network-query.php +++ b/wp-includes/class-wp-network-query.php @@ -204,10 +204,13 @@ class WP_Network_Query { * * Return a non-null value to bypass WordPress' default network queries. * - * The expected return type from this filter depends on the value passed in the request query_vars. - * When `$this->query_vars['count']` is set, the filter should return the network count as an int. - * When `'ids' === $this->query_vars['fields']`, the filter should return an array of network IDs. - * Otherwise the filter should return an array of WP_Network objects. + * The expected return type from this filter depends on the value passed + * in the request query vars: + * - When `$this->query_vars['count']` is set, the filter should return + * the network count as an integer. + * - When `'ids' === $this->query_vars['fields']`, the filter should return + * an array of network IDs. + * - Otherwise the filter should return an array of WP_Network objects. * * @since 5.2.0 * diff --git a/wp-includes/class-wp-site-query.php b/wp-includes/class-wp-site-query.php index 3461970985..39c82d2b67 100644 --- a/wp-includes/class-wp-site-query.php +++ b/wp-includes/class-wp-site-query.php @@ -295,10 +295,13 @@ class WP_Site_Query { * * Return a non-null value to bypass WordPress' default site queries. * - * The expected return type from this filter depends on the value passed in the request query_vars: - * When `$this->query_vars['count']` is set, the filter should return the site count as an int. - * When `'ids' === $this->query_vars['fields']`, the filter should return an array of site IDs. - * Otherwise the filter should return an array of WP_Site objects. + * The expected return type from this filter depends on the value passed + * in the request query vars: + * - When `$this->query_vars['count']` is set, the filter should return + * the site count as an integer. + * - When `'ids' === $this->query_vars['fields']`, the filter should return + * an array of site IDs. + * - Otherwise the filter should return an array of WP_Site objects. * * @since 5.2.0 * diff --git a/wp-includes/version.php b/wp-includes/version.php index a9791b694d..73fe55e2eb 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.6-alpha-48985'; +$wp_version = '5.6-alpha-48986'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.