[wp-trac] [WordPress Trac] #12166: activate_header action should be in wp_head
WordPress Trac
wp-trac at lists.automattic.com
Sun Feb 7 19:17:07 UTC 2010
#12166: activate_header action should be in wp_head
--------------------------+-------------------------------------------------
Reporter: freddyware | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Unassigned
Component: Multisite | Version: 3.0
Severity: normal | Keywords: has-patch
--------------------------+-------------------------------------------------
In `wp-activate.php`, the `activate_header` action is executed without
wrapping it in a function that inserts it into `wp_head`.
{{{
do_action("activate_header");
}}}
is directly called on line 19.
By contrast, `wp-signup.php` wraps it in a function which is inserted into
`wp_head`, so a plugin can add stylesheets and so on without having it
appear before the DOCTYPE.
{{{
function do_signup_header() {
do_action("signup_header");
}
add_action( 'wp_head', 'do_signup_header' );
}}}
I am submitting a patch to fix this in wp-activate.php.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/12166>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list