[wp-trac] [WordPress Trac] #11935: Only show "Add New" button on plugins.php if the user has the install_plugins capability
WordPress Trac
wp-trac at lists.automattic.com
Sun Jan 17 23:17:03 UTC 2010
#11935: Only show "Add New" button on plugins.php if the user has the
install_plugins capability
----------------------------+-----------------------------------------------
Reporter: jamescollins | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.0
Component: Administration | Version: 2.9.1
Severity: normal | Keywords: has-patch commit
----------------------------+-----------------------------------------------
Changes (by nacin):
* keywords: has-patch => has-patch commit
Comment:
Second patch for themes as well.
map_meta_cap() handles multisite checking, so the switch to
current_user_can() is right.
There might be a few more instances of {{{( !is_multisite() ||
is_super_admin() )}}} that can be replaced with a simple
current_user_can() check.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/11935#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list