[theme-reviewers] General Inquiry
Philip M. Hofer (Frumph)
philip at frumph.net
Thu Aug 19 16:58:13 UTC 2010
I'll edit my help doc and talk to Cais about editing the Codex, thanks Nacin!
----- Original Message -----
From: Andrew Nacin
To: Philip M. Hofer (Frumph)
Cc: Rebecca Tech ; theme-reviewers at lists.wordpress.org
Sent: Thursday, August 19, 2010 9:10 AM
Subject: Re: [theme-reviewers] General Inquiry
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') internally.
Likewise, add_theme_support('widgets') is internal only. The theme should only be calling register_sidebar(s).
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the theme-reviewers