Hello all, I need some help! Basically I created a theme options page so that a client with user account level Editor can edit options of the theme to replace general text of the homepage.
Everything works beautifuly when i'm logged in as an admin, however when my client is logged in and makes a change to the options page and saves, she gets this error
I know what you're thinking. Harmonic you noob, she doesn't have permissions to access the page, obviously!You do not have sufficient permissions to access this page
The thing is that she DOES! Despite the error message declaring her lack of access permissions, the changes she makes ARE saved and reflected correctly on the homepage. Everything works great, except for the error message.
Here is a snippet of my code. As you can see, the permissions are set to "edit_pages", which she can do...
Why is this message coming up for her, and how can I remove it?Code:add_menu_page($themename." Options", "".$themename." Options", 'edit_pages', basename(__FILE__), 'mytheme_admin');

LinkBack URL
About LinkBacks





Reply With Quote
Bookmarks