[theme-reviewers] add_theme_page()

Chip Bennett chip at chipbennett.net
Mon Jan 24 17:01:37 UTC 2011


If the Theme options *must* be separated into two pages (in most cases, one
page is sufficient; but there are exceptions), then just put the two pages
under "Appearance". Still no need for a separate, top-level menu entry.

Chip

On Mon, Jan 24, 2011 at 10:22 AM, Satish Gandham <satish.iitg at gmail.com>wrote:

> I have two option pages in my theme, so im using a separate menu just below
> the appearance.
>
> Theme update was not approved showing the following message. Can't the
> theme be accepted as is?
> http://themes.trac.wordpress.org/ticket/2730
>
> -WARNING: admin/admin-core.php. Themes should use add_theme_page() for
> adding admin pages.
> Line 48: add_submenu_page( 'swift-options', 'Design Options', 'Design
> Options', 'ediLine 49: *add_submenu_page( 'swift-options', 'Import and
> Export SWIFT options','Impor*
> _______________________________________________
> theme-reviewers mailing list
> theme-reviewers at lists.wordpress.org
> http://lists.wordpress.org/mailman/listinfo/theme-reviewers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wordpress.org/pipermail/theme-reviewers/attachments/20110124/f5767695/attachment.htm>


More information about the theme-reviewers mailing list