[wp-trac] Re: [WordPress Trac] #3706: Admin Menu Hooks confusing
WordPress Trac
wp-trac at lists.automattic.com
Wed Jan 31 20:59:46 GMT 2007
#3706: Admin Menu Hooks confusing
----------------------------+-----------------------------------------------
Reporter: mattyrob | Owner: anonymous
Type: defect | Status: new
Priority: low | Milestone: 2.1.1
Component: Administration | Version: 2.1
Severity: minor | Resolution:
Keywords: |
----------------------------+-----------------------------------------------
Changes (by mattyrob):
* priority: normal => low
* severity: major => minor
Comment:
I've managed to implement a workaround on my plugin that changes the
substituted link based upon the user capability level in WordPress.
{{{
if (current_user_can('manage_options')) {
$this->s2form = $this->use_profile_admin; //use admin form link
} else {
$this->s2form = $this->use_profile_users; //use users form link
}
}}}
From my point of view though this is still something that could be tidie
up in the backend as linking in to 2 menus for 1 purpose that only changes
depending on user capability seems backwards. It also generates
essentially unecessary code in plugins.
--
Ticket URL: <http://trac.wordpress.org/ticket/3706#comment:3>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list