Changeset 62028
- Timestamp:
- 03/14/2026 07:22:14 PM (2 weeks ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/cache-compat.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/cache-compat.php
r61760 r62028 328 328 * @param int $blog_id Site ID. 329 329 */ 330 function wp_cache_switch_to_blog( $blog_id ) {330 function wp_cache_switch_to_blog( $blog_id ): void { 331 331 global $wp_object_cache; 332 332 333 333 // Attempt to use the drop-in object cache method if it exists. 334 if ( method_exists( $wp_object_cache, 'switch_to_blog' ) ) {334 if ( is_object( $wp_object_cache ) && method_exists( $wp_object_cache, 'switch_to_blog' ) ) { 335 335 $wp_object_cache->switch_to_blog( $blog_id ); 336 336 return; … … 341 341 * for the new blog ID. 342 342 */ 343 wp_cache_switch_to_blog_fallback( $blog_id);344 } 345 endif; 343 wp_cache_switch_to_blog_fallback(); 344 } 345 endif;
Note: See TracChangeset
for help on using the changeset viewer.