[wp-trac] [WordPress Trac] #11894: multisite permission checks should use caps when available

WordPress Trac wp-trac at lists.automattic.com
Thu Jan 14 02:51:06 UTC 2010


#11894: multisite permission checks should use caps when available
-------------------------------+--------------------------------------------
 Reporter:  Denis-de-Bernardy  |       Owner:     
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  3.0
Component:  Multisite          |     Version:  3.0
 Severity:  critical           |    Keywords:     
-------------------------------+--------------------------------------------
 r12722 introduces a bunch of checks such as:

 {{{
 if ( !is_multisite() || is_super_admin() )
 }}}

 they should be replaced with checks such as:

 {{{
 if ( current_user_can('install_plugins') )
 }}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/11894>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list