From a98e73f94f62affc6412df23a337c5f027fc1bb1 Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Mon, 9 Oct 2017 14:25:52 +0000 Subject: [PATCH] Networks and Sites: Correct the documentation for the `update_site_cache` parameter of `WP_Site_Query`. Props welcher, sudar Fixes #42155 git-svn-id: https://develop.svn.wordpress.org/trunk@41795 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/class-wp-site-query.php | 2 +- src/wp-includes/ms-blogs.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wp-includes/class-wp-site-query.php b/src/wp-includes/class-wp-site-query.php index 18140d1fdd..6f3de914ae 100644 --- a/src/wp-includes/class-wp-site-query.php +++ b/src/wp-includes/class-wp-site-query.php @@ -136,7 +136,7 @@ class WP_Site_Query { * @type string $search Search term(s) to retrieve matching sites for. Default empty. * @type array $search_columns Array of column names to be searched. Accepts 'domain' and 'path'. * Default empty array. - * @type bool $update_site_cache Whether to prime the cache for found sites. Default false. + * @type bool $update_site_cache Whether to prime the cache for found sites. Default true. * } */ public function __construct( $query = '' ) { diff --git a/src/wp-includes/ms-blogs.php b/src/wp-includes/ms-blogs.php index f5b57fd6e7..7a125c34f8 100644 --- a/src/wp-includes/ms-blogs.php +++ b/src/wp-includes/ms-blogs.php @@ -638,7 +638,7 @@ function update_site_cache( $sites ) { * @type string $search Search term(s) to retrieve matching sites for. Default empty. * @type array $search_columns Array of column names to be searched. Accepts 'domain' and 'path'. * Default empty array. - * @type bool $update_site_cache Whether to prime the cache for found sites. Default false. + * @type bool $update_site_cache Whether to prime the cache for found sites. Default true. * } * @return array|int List of sites, or number of sites when 'count' is passed as a query var. */