Make WordPress Core

Changeset 5843


Ignore:
Timestamp:
08/03/2007 12:45:06 AM (17 years ago)
Author:
markjaquith
Message:

Consistently include wp-config.php. fixes #3349

Location:
trunk
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/update-links.php

    r4495 r5843  
    11<?php
    2 require_once( dirname( dirname(__FILE__) ) . '/wp-config.php');
     2require_once('../wp-config.php');
    33require_once( ABSPATH . 'wp-includes/class-snoopy.php');
    44
  • trunk/wp-app.php

    r5765 r5843  
    1010define('APP_REQUEST', true);
    1111
    12 require_once('wp-config.php');
    13 require_once('wp-includes/post-template.php');
     12require_once('./wp-config.php');
     13require_once(ABSPATH . WPINC . '/post-template.php');
    1414
    1515// Attempt to automatically detect whether to use querystring
  • trunk/wp-atom.php

    r4927 r5843  
    22
    33if (empty($wp)) {
    4     require_once('wp-config.php');
     4    require_once('./wp-config.php');
    55    wp('feed=atom');
    66}
  • trunk/wp-commentsrss2.php

    r4927 r5843  
    22
    33if (empty($wp)) {
    4     require_once('wp-config.php');
     4    require_once('./wp-config.php');
    55    wp('feed=rss2&withcomments=1');
    66}
  • trunk/wp-cron.php

    r5274 r5843  
    22ignore_user_abort(true);
    33define('DOING_CRON', TRUE);
    4 require_once('wp-config.php');
     4require_once('./wp-config.php');
    55
    66if ( $_GET['check'] != wp_hash('187425') )
  • trunk/wp-rdf.php

    r4927 r5843  
    22
    33if (empty($wp)) {
    4     require_once('wp-config.php');
     4    require_once('./wp-config.php');
    55    wp('feed=rdf');
    66}
  • trunk/wp-rss.php

    r4927 r5843  
    22
    33if (empty($wp)) {
    4     require_once('wp-config.php');
     4    require_once('./wp-config.php');
    55    wp('feed=rss');
    66}
  • trunk/wp-rss2.php

    r4927 r5843  
    22
    33if (empty($wp)) {
    4     require_once('wp-config.php');
     4    require_once('./wp-config.php');
    55    wp('feed=rss2');
    66}
  • trunk/wp-trackback.php

    r5087 r5843  
    22
    33if (empty($wp)) {
    4     require_once('wp-config.php');
     4    require_once('./wp-config.php');
    55    wp('tb=1');
    66}
Note: See TracChangeset for help on using the changeset viewer.