Did your user’s theme options and widgets page disappear?

Did your user’s theme options and widgets page disappear?

Well here's a little bug that was discovered, though it's not really a bug in WordPress itself, rather a change. It shows up in themes with higher-level capabilities attached to certain menu items.

In 3.0, this was made more stringent with the merge. the theme editor was left in with only Super Admins having access to it. Regular site administrators should not have access.

Some themes, however, have additional menu items (options pages) that use the capability edit_themes to access.

If you find this is happening to you, just search the theme's functions.php file and change the edit_themes cap to edit_themes_options. That should fix it.

(Visited 111 times, 2 visits today)
  • Prestidigitation » Alkivia Chameleon Theme in WordPress 3.0 with Multi-Site
    Posted at 13:17h, 06 July Reply

    […] in order to fix it, I followed a lead from Andrea, and then another lead that Boone found in fixing userthemes for […]

  • Lee H
    Posted at 11:53h, 05 August Reply

    Where is that “Andrea Worship” emoticon when you need it??
    Thank you so much!

  • Diego
    Posted at 15:12h, 25 September Reply

    Hello Andrea. Im runing wp v. 3.01 and lost the users.php and the widgets.php pages from my cPanel. When i try to reach manually some error msg like “u don’t have access” or “cheating uh?” appears.

    U can see it from these screenshots. Any idea?
    My functions php don’t have any line like edit_themes cap or edit_themes_options. or capabilites, etc.
    Thank you very much for your anser.

    • andrea
      Posted at 17:24h, 27 September Reply

      You don;t seem to be running multisite. 🙂

  • Eric C
    Posted at 17:16h, 16 November Reply

    Thanks! I used this to fix the Atahualpa theme on our Multisite install. I had to use edit_theme_options instead of edit_themes_options though.

  • Atahualpa and Wordpress 3.0 Multisite — ctrl-alt-ESC
    Posted at 10:52h, 17 November Reply

    […] I used this tip from the always helpful Andrea_r to fix the missing theme options.  Open up the […]

  • Ev
    Posted at 02:36h, 12 December Reply

    Hi Andrea,

    Need help… wanted to ask here!
    I installed a new theme and the theme options area doesn’t show up under Appearances… but i looked through the file theme_options.php for what you wrote and i couldn’t find edit_themes listed anywhere. in fact i did a spotlight search of my comp and only found that written in admin_theme_page.php and admins_videos_page.php … so i changed it under the admin theme for the hell of it … still no success with having it appear.
    what should I do?
    Thank you!

    • andrea
      Posted at 11:59h, 13 December Reply

      then you’ll have to find the section in the functions.php file that adds the menu and see what user cap it uses.

      • Sidd
        Posted at 15:51h, 07 January Reply

        I am using Blocks and Sapphire Stretch themes upgraded from 2.8 to 3.0.3. No edit_themes check in functions.php for either of these themes.

        I still don’t see the custom-header and widgets sub-menus work for a site admin. They show up and work fine for a super-admin.

        I get redirected to is /wp-admin?c=1 when I try the URLs wp-admin/themes.php?page=cutom-header and wp-admin/widgets.php directly. I have also modified the Rewriterule but no change.

        Any Ideas?


      • Dan
        Posted at 14:55h, 10 June Reply

        I also do not have edit_themes in my functions.php file. I am also looking for a way to bring back theme options for the Admin of the site that has the mystique theme. They are not there or our WPMS.


        • Ron
          Posted at 18:54h, 13 June Reply

          If you want assistance with a particular theme ask either the theme author or in the WordPress.org support forum.

Post A Comment