[theme-reviewers] General Inquiry

Andrew Nacin wp at andrewnacin.com
Thu Aug 19 16:10:47 UTC 2010

 On Thu, Aug 19, 2010 at 6:45 AM, Philip M. Hofer (Frumph) <
philip at frumph.net> wrote:

> 3) search for 'register_nav'  for the wp_nav_menu, if it doesn't exist,
> search for add_theme_support('menus') if that doesn't exist, and
> wp_nav_menus is used, fail.  Note, old add_theme_support('nav-menus'); needs
> to be add_theme_support('menus'); now.

This is incorrect. add_theme_support('menus') is an internal process only.
*It should never be directly called.* Instead, the theme should be calling
register_nav_menu(s) which will trigger add_theme_support('menus')

Likewise, add_theme_support('widgets') is internal only. The theme should
only be calling register_sidebar(s).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wordpress.org/pipermail/theme-reviewers/attachments/20100819/6170ffef/attachment.htm>

More information about the theme-reviewers mailing list