Ticket #40447: 40447.patch
File 40447.patch, 3.6 KB (added by , 8 years ago) |
---|
-
src/wp-includes/class-wp-network-query.php
92 92 * Sets up the network query, based on the query vars passed. 93 93 * 94 94 * @since 4.6.0 95 * @since 4.8.0 Introduced the 'cache_domain' parameter. 95 96 * @access public 96 97 * 97 98 * @param string|array $query { … … 119 120 * @type array $path__not_in Array of paths to exclude affiliated networks for. Default empty. 120 121 * @type string $search Search term(s) to retrieve matching networks for. Default empty. 121 122 * @type bool $update_network_cache Whether to prime the cache for found networks. Default true. 123 * @type string $cache_domain Unique cache key to be produced when this query is stored in 124 * an object cache. Default is 'core'. 122 125 * } 123 126 */ 124 127 public function __construct( $query = '' ) { … … 140 143 'path__not_in' => '', 141 144 'search' => '', 142 145 'update_network_cache' => true, 146 'cache_domain' => 'core', 143 147 ); 144 148 145 149 if ( ! empty( $query ) ) { -
src/wp-includes/class-wp-site-query.php
99 99 * Sets up the site query, based on the query vars passed. 100 100 * 101 101 * @since 4.6.0 102 * @since 4.8.0 Introduced the 'lang_id', 'lang__in', and 'lang__not_in' parameters.102 * @since 4.8.0 Introduced the 'lang_id', 'lang__in', 'lang__not_in', and 'cache_domain' parameters. 103 103 * @access public 104 104 * 105 105 * @param string|array $query { … … 146 146 * @type array $search_columns Array of column names to be searched. Accepts 'domain' and 'path'. 147 147 * Default empty array. 148 148 * @type bool $update_site_cache Whether to prime the cache for found sites. Default false. 149 * @type string $cache_domain Unique cache key to be produced when this query is stored in 150 * an object cache. Default is 'core'. 149 151 * } 150 152 */ 151 153 public function __construct( $query = '' ) { … … 181 183 'count' => false, 182 184 'date_query' => null, // See WP_Date_Query 183 185 'update_site_cache' => true, 186 'cache_domain' => 'core', 184 187 ); 185 188 186 189 if ( ! empty( $query ) ) { -
src/wp-includes/ms-blogs.php
581 581 * Retrieves a list of sites matching requested arguments. 582 582 * 583 583 * @since 4.6.0 584 * @since 4.8.0 Introduced the 'lang_id', 'lang__in', and 'lang__not_in' parameters.584 * @since 4.8.0 Introduced the 'lang_id', 'lang__in', 'lang__not_in', and 'cache_domain' parameters. 585 585 * 586 586 * @see WP_Site_Query::parse_query() 587 587 * … … 629 629 * @type array $search_columns Array of column names to be searched. Accepts 'domain' and 'path'. 630 630 * Default empty array. 631 631 * @type bool $update_site_cache Whether to prime the cache for found sites. Default false. 632 * @type string $cache_domain Unique cache key to be produced when this query is stored in 633 * an object cache. Default is 'core'. 632 634 * } 633 635 * @return array List of sites. 634 636 */