WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Appearance Menu - Theme Options URL (3 posts)

  1. wlpdrpat
    Member
    Posted 3 years ago #

    Hi,

    I am in the process of debugging upgrading to 3.0.3 from 2.9.2 and have found a bug in my theme.

    In 2.9.2 the custom options page for my theme worked as expected. The link for options page showed up as expected and pointed to the correct url.

    In my test upgrade - I find the the link to my options page appears to be a relative link that points to whatever page I am currently on.

    I looked through the Twenty Ten theme but could not find code for setting up a custom options page or if it is there I missed it.

    Here is what I have in my functions:
    add_theme_page(__('Options'), __('Options'), 'edit_themes', (__FILE__), 'theme_option_page');

    Any help on fixing this would be greatly appreciated.
    Pat

  2. Michelle Langston
    Theme Wrangler at Automattic
    Posted 3 years ago #

    Try this:

    add_theme_page(__('Options'), __('Options'), 'edit_themes', basename(__FILE__), 'theme_option_page');

  3. wlpdrpat
    Member
    Posted 3 years ago #

    Hey Chellycat,

    You are a superstar!! It was staring me in the face and I missed it.

    Thanks for your help.

    Pat

Topic Closed

This topic has been closed to new replies.

About this Topic