Make WordPress Core


Ignore:
Timestamp:
12/07/2012 09:53:27 AM (12 years ago)
Author:
ryan
Message:

Make current_user_can_for_blog() safe to run single site.

Props nacin, MarkJaquith
fixes #22803

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/class-wp-theme.php

    r22798 r23117  
    11051105        static $allowed_themes = array();
    11061106
    1107         if ( ! $blog_id )
     1107        if ( ! $blog_id || ! is_multisite() )
    11081108            $blog_id = get_current_blog_id();
    11091109
Note: See TracChangeset for help on using the changeset viewer.