Make WordPress Core

Ticket #39703: 39703.1.patch

File 39703.1.patch, 1.1 KB (added by sabernhardt, 23 months ago)
  • src/wp-activate.php

     
    1111/** Sets up the WordPress Environment. */
    1212require __DIR__ . '/wp-load.php';
    1313
    14 require __DIR__ . '/wp-blog-header.php';
     14require ABSPATH . WPINC . '/template-loader.php';
    1515
    1616if ( ! is_multisite() ) {
    1717        wp_redirect( wp_registration_url() );
     
    6868        $wp_object_cache->cache_enabled = false;
    6969}
    7070
    71 // Fix for page title.
    72 $wp_query->is_404 = false;
    73 
    7471/**
    7572 * Fires before the Site Activation page is loaded.
    7673 *
  • src/wp-signup.php

     
    55
    66add_filter( 'wp_robots', 'wp_robots_no_robots' );
    77
    8 require __DIR__ . '/wp-blog-header.php';
     8require ABSPATH . WPINC . '/template-loader.php';
    99
    1010nocache_headers();
    1111
     
    3939        die();
    4040}
    4141
    42 // Fix for page title.
    43 $wp_query->is_404 = false;
    44 
    4542/**
    4643 * Fires before the Site Sign-up page is loaded.
    4744 *