Make WordPress Core

Opened 16 years ago

Closed 16 years ago

#13825 closed defect (bug) (fixed)

Don't display an error when the theme supports widgets but not menus

Reported by: nacin Owned by:
Priority: normal Milestone: 3.0
Component: Menus Version:
Severity: normal Keywords: has-patch ui-feedback
Cc: Focuses:

Description

Currently we display an annoying red bar when the theme doesn't support menus, but does support widgets.

Let's only have a bar (and make it yellow) before we've done anything. Once we have a menu, we can re-use the theme locations box to say "The current theme does not natively support menus, but you can use the "Custom Menu" widget to add any menus you create here to the theme's sidebar."

Note that this would not be a new string.

Attachments (1)

13825.diff​ (4.2 KB ) - added by nacin 16 years ago.

Download all attachments as: .zip

Change History (4)

#1 @nacin
16 years ago

I'm also now realizing that calling add_theme_support('nav-menus') and register_nav_menus() are two different things and if only the former is done (as was the original instance) we may have some peculiar results.

#2 @nacin
16 years ago

(In [15191]) Don't show an error when the theme supports widgets but not menus. see #13825.

#3 @nacin
16 years ago

  • Resolution → fixed
  • Status new → closed

(In [15193]) Switch to current_theme_supports(menus) internally. Adding theme support for 'nav-menus' is deprecated in favor of register_nav_menu(s). fixes #13825.

Note: See TracTickets for help on using tickets.