WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] do_action('setup_theme'); and add_action('setup_theme', 'preview_theme');? (2 posts)

  1. monodistortion
    Member
    Posted 5 years ago #

    What is
    do_action('setup_theme');
    http://core.trac.wordpress.org/browser/tags/2.7.1/wp-settings.php#L544

    and
    add_action('setup_theme', 'preview_theme');
    http://core.trac.wordpress.org/browser/tags/2.7.1/wp-includes/theme.php#L868

    The add_action isn't even in a function. It's just hanging out in the file by itself.

    The only other reference to setup_theme I could find is in the Codex here:
    http://codex.wordpress.org/Plugin_API/Action_Reference
    but it's not defined anywhere that I can see.

    I ran into this while tracking down a bug in the preview theme functions. I think I finally figured out why themes with a hyphen '-' can't be previewed.

  2. monodistortion
    Member
    Posted 5 years ago #

    Oh, whoops. I just spent the last few hours finding this and it was just fixed:
    http://core.trac.wordpress.org/ticket/9244

Topic Closed

This topic has been closed to new replies.

About this Topic