[wp-trac] [WordPress Trac] #22336: WP_Theme::get_allowed_on_site() function doesn't work for other blogs
WordPress Trac
noreply at wordpress.org
Wed Oct 31 20:07:54 UTC 2012
#22336: WP_Theme::get_allowed_on_site() function doesn't work for other blogs
-----------------------------+--------------------------
Reporter: npetetin | Type: defect (bug)
Status: new | Priority: normal
Milestone: Awaiting Review | Component: Themes
Version: 3.4.2 | Severity: major
Keywords: |
-----------------------------+--------------------------
On line 1110, the static function WP_Theme::get_allowed_on_site()
overwrites the $blog_id argument:
{{{
$current = $blog_id == get_current_blog_id();
}}}
As a consequence, calling the function for another blog than the current
blog is made impossible. It doesn't look fixed in WP 3.5 either.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/22336>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list