[wp-trac] [WordPress Trac] #21761: Hide Appearance > Widgets menu when no sidebars are registered

WordPress Trac wp-trac at lists.automattic.com
Sat Sep 1 02:57:31 UTC 2012


#21761: Hide Appearance > Widgets menu when no sidebars are registered
-------------------------+------------------
 Reporter:  sabreuse     |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  3.5
Component:  UI           |     Version:
 Severity:  normal       |  Resolution:
 Keywords:  needs-patch  |
-------------------------+------------------

Comment (by greenshady):

 I've uploaded two separate patches.  I wasn't sure the best route to take
 there, so I tried two different options that I think would work.

 We should probably also block access and add the "You do not have
 sufficient permissions to access this page." message to the widgets screen
 in the admin, which would be consistent with the background and header
 features.

 Replying to [comment:3 azaozz]:
 > Replying to [comment:2 greenshady]:
 >
 > A tip: [http://core.trac.wordpress.org/browser/trunk/wp-
 includes/functions.php#L2518 look here] :)

 I thought I was going crazy their for a while.  I swore I looked in every
 file in `/wp-admin`.

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


More information about the wp-trac mailing list