Make WordPress Core

Ticket #39703: signup-activate-1.patch

File signup-activate-1.patch, 1.4 KB (added by imath, 7 years ago)
  • src/wp-activate.php

    diff --git src/wp-activate.php src/wp-activate.php
    index b13279a..bb0e0dc 100644
    define( 'WP_INSTALLING', true ); 
    1111/** Sets up the WordPress Environment. */
    1212require( dirname(__FILE__) . '/wp-load.php' );
    1313
    14 require( dirname( __FILE__ ) . '/wp-blog-header.php' );
     14require( ABSPATH . WPINC . '/template-loader.php' );
    1515
    1616if ( !is_multisite() ) {
    1717        wp_redirect( wp_registration_url() );
    if ( !is_multisite() ) { 
    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;
    26 
    2724/**
    2825 * Fires before the Site Activation page is loaded.
    2926 *
  • src/wp-signup.php

    diff --git src/wp-signup.php src/wp-signup.php
    index 156de61..f2c677a 100644
    require( dirname(__FILE__) . '/wp-load.php' ); 
    55
    66add_action( 'wp_head', 'wp_no_robots' );
    77
    8 require( dirname( __FILE__ ) . '/wp-blog-header.php' );
     8require( ABSPATH . WPINC . '/template-loader.php' );
    99
    1010if ( is_array( get_site_option( 'illegal_names' )) && isset( $_GET[ 'new' ] ) && in_array( $_GET[ 'new' ], get_site_option( 'illegal_names' ) ) ) {
    1111        wp_redirect( network_home_url() );
    if ( !is_main_site() ) { 
    3737        die();
    3838}
    3939
    40 // Fix for page title
    41 $wp_query->is_404 = false;
    42 
    4340/**
    4441 * Fires before the Site Signup page is loaded.
    4542 *