Make WordPress Core

Changes between Version 1 and Version 2 of Ticket #21459, comment 4


Ignore:
Timestamp:
08/07/2012 07:57:07 PM (12 years ago)
Author:
ryan
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #21459, comment 4

    v1 v2  
    77wp-includes/ms-blogs.php:
    88
    9  * Deprecate the $validate argument to switch_to_blog(). This avoid a not very necessary call to get_blog_details() possibly saving a few queries.
     9 * Deprecate the $validate argument to switch_to_blog(). This avoids a not very necessary call to get_blog_details(), possibly saving a few queries.
    1010 * Use $_wp_switched and $_wp_switched_stack instead of $switched and $switched_stack to make it less likely these globals will be stomped.
    1111 * Use GLOBALS to access blog_id and other globals. I've preferred this style lately since it makes it obvious a global is being used and avoids global blog_id being stomped by a local variable.