[wp-trac] [WordPress Trac] #20111: Ability to set permission level for admin settings pages using filters

WordPress Trac wp-trac at lists.automattic.com
Fri Feb 24 19:58:36 UTC 2012


#20111: Ability to set permission level for admin settings pages using filters
-----------------------------+----------------------
 Reporter:  bananastalktome  |       Owner:
     Type:  feature request  |      Status:  closed
 Priority:  normal           |   Milestone:
Component:  Administration   |     Version:
 Severity:  normal           |  Resolution:  wontfix
 Keywords:                   |
-----------------------------+----------------------
Changes (by scribu):

 * status:  new => closed
 * resolution:   => wontfix
 * milestone:  Awaiting Review =>


Comment:

 > I figured using filters, with each distinct admin page in the nav menu
 having a separate filter which can be used to redefine permission levels,
 might make the process a little easier.

 Except what is a "distinct admin page"? For example, it's not obvious if
 {{{edit.php?post_type=post}}} should have a different filter than
 {{{edit.php?post_type=page}}}.

 That's why we have $current_screen (which also has a post_type property,
 btw), so that you can choose your own level of granularity.

 Having remove_(sub)menu_page() also block access is an interesting idea,
 but it suffers from the same problem: do you block the whole of edit.php
 or just parts of it? There's no 1-to-1 mapping between menu items and
 admin screens.

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


More information about the wp-trac mailing list