[wp-trac] [WordPress Trac] #22803: current_user_can_for_blog() fatal errors in single site

WordPress Trac noreply at wordpress.org
Fri Dec 7 07:41:34 UTC 2012


#22803: current_user_can_for_blog() fatal errors in single site
-----------------------------+--------------------
 Reporter:  nacin            |       Owner:
     Type:  defect (bug)     |      Status:  new
 Priority:  highest omg bbq  |   Milestone:  3.5
Component:  Multisite        |     Version:  trunk
 Severity:  blocker          |  Resolution:
 Keywords:                   |
-----------------------------+--------------------

Comment (by markjaquith):

 Completed an audit. {{{current_user_can_for_blog()}}} was the only serious
 one. {{{WP_Theme->get_allowed_on_site()}}}, was the only other one of
 note. I independently found it and came up with the same fix as in nacin's
 {{{22803.diff}}}.

 {{{22803.2.diff}}} includes nacin's fix and a simple 2x
 {{{is_multisite()}}} check for {{{current_user_can_for_blog()}}}.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/22803#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list