Make WordPress Core

Ticket #24960: wp-activate.diff

File wp-activate.diff, 618 bytes (added by nullvariable, 12 years ago)

fixes 404 status and outputs a generic header (removed debug line)

  • wp-activate.php

     
    2121if ( is_object( $wp_object_cache ) )
    2222        $wp_object_cache->cache_enabled = false;
    2323
     24// Fix for page title
     25$wp_query->is_404 = false;
     26add_filter('wp_title', 'activate_title_fix', 1, 3);
     27function activate_title_fix($title, $sep, $seplocation) {
     28    $title = __('Account Activation');
     29    $title = ($seplocation == "right") ? $title." ".$sep." " : $sep." ".$title." ";
     30    return $title;
     31}
     32
    2433do_action( 'activate_header' );
    2534
    2635/**