mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-04 09:10:06 +00:00
Make current_user_can_for_blog() safe to run single site.
Props nacin, MarkJaquith fixes #22803 git-svn-id: https://develop.svn.wordpress.org/trunk@23117 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1104,7 +1104,7 @@ final class WP_Theme implements ArrayAccess {
|
||||
public static function get_allowed_on_site( $blog_id = null ) {
|
||||
static $allowed_themes = array();
|
||||
|
||||
if ( ! $blog_id )
|
||||
if ( ! $blog_id || ! is_multisite() )
|
||||
$blog_id = get_current_blog_id();
|
||||
|
||||
if ( isset( $allowed_themes[ $blog_id ] ) )
|
||||
|
||||
Reference in New Issue
Block a user