Opened 16 years ago
Closed 16 years ago
#12166 closed defect (bug) (fixed)
activate_header action should be in wp_head
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | 3.0 | Priority: | normal |
| Severity: | normal | Version: | 3.0 |
| Component: | Multisite | Keywords: | has-patch |
| Focuses: | Cc: |
Description
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.
Attachments (1)
Change History (4)
#1
@
16 years ago
- Milestone changed from Unassigned to Future Release
You can work around this in a plugin as follows:
function my_activate_check() {
add_action('wp_head','my_activate_header');
}
function my_activate_header() {
// your header code
}
add_action('activate_header','my_activate_check');
punting.
Note: See
TracTickets for help on using
tickets.
Fixes activate_header action placement