WordPress.org

Make WordPress Core

Ticket #12166: wp-activate_activateheader.diff

File wp-activate_activateheader.diff, 463 bytes (added by freddyware, 8 years ago)

Fixes activate_header action placement

  • wp-activate.php

     
    1616if ( is_object( $wp_object_cache ) )
    1717        $wp_object_cache->cache_enabled = false;
    1818
    19 do_action("activate_header");
     19function do_activate_header() {
     20        do_action("activate_header");
     21}
     22add_action( 'wp_head', 'do_activate_header' );
    2023
    2124function wpmu_activate_stylesheet() {
    2225        ?>