Make WordPress Core

Ticket #19921: wp-load-require-once.diff

File wp-load-require-once.diff, 3.7 KB (added by convissor, 13 years ago)
  • wp-activate.php

    diff --git a/wp-activate.php b/wp-activate.php
    index d470772..8563f0d 100644
    a b  
    22define( 'WP_INSTALLING', true );
    33
    44/** Sets up the WordPress Environment. */
    5 require( dirname(__FILE__) . '/wp-load.php' );
     5require_once( dirname(__FILE__) . '/wp-load.php' );
    66
    77require( './wp-blog-header.php' );
    88
    get_header(); 
    9999        var key_input = document.getElementById('key');
    100100        key_input && key_input.focus();
    101101</script>
    102 <?php get_footer(); ?>
    103  No newline at end of file
     102<?php get_footer(); ?>
  • wp-admin/upgrade.php

    diff --git a/wp-admin/upgrade.php b/wp-admin/upgrade.php
    index 251513a..e12a789 100644
    a b  
    1515define( 'WP_INSTALLING', true );
    1616
    1717/** Load WordPress Bootstrap */
    18 require( '../wp-load.php' );
     18require_once( dirname(dirname(__FILE__)) . '/wp-load.php' );
    1919
    2020timer_start();
    2121require_once( ABSPATH . 'wp-admin/includes/upgrade.php' );
  • wp-comments-post.php

    diff --git a/wp-comments-post.php b/wp-comments-post.php
    index 66ae330..e591f3f 100644
    a b if ( 'POST' != $_SERVER['REQUEST_METHOD'] ) { 
    1313}
    1414
    1515/** Sets up the WordPress Environment. */
    16 require( dirname(__FILE__) . '/wp-load.php' );
     16require_once( dirname(__FILE__) . '/wp-load.php' );
    1717
    1818nocache_headers();
    1919
  • wp-login.php

    diff --git a/wp-login.php b/wp-login.php
    index 97e5d48..54b5eb4 100644
    a b  
    99 */
    1010
    1111/** Make sure that the WordPress bootstrap has run before continuing. */
    12 require( dirname(__FILE__) . '/wp-load.php' );
     12require_once( dirname(__FILE__) . '/wp-load.php' );
    1313
    1414// Redirect to https login if forced to use SSL
    1515if ( force_ssl_admin() && !is_ssl() ) {
  • wp-mail.php

    diff --git a/wp-mail.php b/wp-mail.php
    index b75e3bb..c62a71a 100644
    a b  
    88 */
    99
    1010/** Make sure that the WordPress bootstrap has run before continuing. */
    11 require(dirname(__FILE__) . '/wp-load.php');
     11require_once( dirname(__FILE__) . '/wp-load.php' );
    1212
    1313if ( ! apply_filters( 'enable_post_by_email_configuration', true ) )
    1414        wp_die( __( 'This action has been disabled by the administrator.' ) );
  • wp-pass.php

    diff --git a/wp-pass.php b/wp-pass.php
    index 39ac448..73a546b 100644
    a b  
    77 */
    88
    99/** Make sure that the WordPress bootstrap has run before continuing. */
    10 require( dirname( __FILE__ ) . '/wp-load.php');
     10require_once( dirname(__FILE__) . '/wp-load.php' );
    1111
    1212if ( empty( $wp_hasher ) ) {
    1313        require_once( ABSPATH . 'wp-includes/class-phpass.php');
  • wp-register.php

    diff --git a/wp-register.php b/wp-register.php
    index a9062e0..1025362 100644
    a b  
    99 * @deprecated Use wp_register() to create a registration link instead
    1010 */
    1111
    12 require('./wp-load.php');
     12require_once( dirname(__FILE__) . '/wp-load.php' );
    1313wp_redirect( site_url('wp-login.php?action=register') );
    1414exit;
  • wp-signup.php

    diff --git a/wp-signup.php b/wp-signup.php
    index 3150f9a..55cb2d4 100644
    a b  
    11<?php
    22
    33/** Sets up the WordPress Environment. */
    4 require( dirname(__FILE__) . '/wp-load.php' );
     4require_once( dirname(__FILE__) . '/wp-load.php' );
    55
    66add_action( 'wp_head', 'wp_no_robots' );
    77
  • xmlrpc.php

    diff --git a/xmlrpc.php b/xmlrpc.php
    index e4dafe7..a2d2019 100644
    a b if ( isset($HTTP_RAW_POST_DATA) ) 
    2626        $HTTP_RAW_POST_DATA = trim($HTTP_RAW_POST_DATA);
    2727
    2828/** Include the bootstrap for setting up WordPress environment */
    29 include('./wp-load.php');
     29require_once( dirname(__FILE__) . '/wp-load.php' );
    3030
    3131if ( isset( $_GET['rsd'] ) ) { // http://archipelago.phrasewise.com/rsd
    3232header('Content-Type: text/xml; charset=' . get_option('blog_charset'), true);