• After upgrading to WordPress 3.0.1 with multisite settings, normal admin users can only see the submenu “Themes” under “Appearance”. There are no widgets or theme options submenu although the selected theme supports widgets and have theme options.

    For the site admin user, all submenus are visible.

    I’ve tried renaming the plugins and mu-plugins folders also without luck.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter ezbizniz

    (@ezbizniz)

    I tried adding the following line to the function _wp_menu_output() in /wp-admin/enu-header.php without luck:
    $submenu[‘themes.php’][7] = array(__(‘Widgets’), ‘edit_theme_options’, ‘widgets.php’ );

    Thread Starter ezbizniz

    (@ezbizniz)

    The strange thing is when I tried upgrading another site to WP3.0.1 there was no problem with the admin menu.

    Thread Starter ezbizniz

    (@ezbizniz)

    This problem is now fixed. For anyone else having the same problem, the problem was that the new 3.0 capabilities, edit_theme_options weren’t added. This code fixed the issue:
    $role =& get_role( ‘administrator’ );

    if ( !empty( $role ) ) {
    $role->add_cap( ‘update_core’ );
    $role->add_cap( ‘list_users’ );
    $role->add_cap( ‘remove_users’ );
    $role->add_cap( ‘add_users’ );
    $role->add_cap( ‘promote_users’ );
    $role->add_cap( ‘edit_theme_options’ );
    $role->add_cap( ‘delete_themes’ );
    $role->add_cap( ‘export’ );
    }

    Thanks ezbizniz,

    Since I upgraded from MU 2.9 I’ve been looking for a fix to this exact problem. I would like to try yours; so excuse this daft question, but which php file did you add this code to?

    Thanks

    Mike (+ anyone with this problem) it needs to be added to your themes functions.php file, if you dont have one just make one and put that in it, be sure to enclose it in php tags like this

    <?php
    if ( !empty( $role ) ) {
    $role->add_cap( 'update_core' );
    $role->add_cap( 'list_users' );
    $role->add_cap( 'remove_users' );
    $role->add_cap( 'add_users' );
    $role->add_cap( 'promote_users' );
    $role->add_cap( 'edit_theme_options' );
    $role->add_cap( 'delete_themes' );
    $role->add_cap( 'export' );
    }
    ?>
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Widgets submenu gone’ is closed to new replies.