WordPress.org

Make WordPress Core

Ticket #3349: 2.0.5-phantom-wp-config-consistency.diff

File 2.0.5-phantom-wp-config-consistency.diff, 5.3 KB (added by RuddO, 12 years ago)
  • wordpress/wp-pass.php

     
    11<?php
    2 require( dirname(__FILE__) . '/wp-config.php');
     2require('./wp-config.php');
    33
    44if ( get_magic_quotes_gpc() )
    55        $_POST['post_password'] = stripslashes($_POST['post_password']);
     
    88setcookie('wp-postpass_' . COOKIEHASH, $_POST['post_password'], time() + 864000, COOKIEPATH);
    99
    1010wp_redirect(wp_get_referer());
    11 ?>
    12  Sin fin-de-línea al final del archivo
     11?>
  • wordpress/wp-rss.php

     
    11<?php
    22
    33if (empty($wp)) {
    4         require_once('wp-config.php');
     4        require_once('./wp-config.php');
    55        wp('feed=rss');
    66}
    77
  • wordpress/wp-login.php

     
    11<?php
    2 require( dirname(__FILE__) . '/wp-config.php' );
     2require( './wp-config.php' );
    33
    44$action = $_REQUEST['action'];
    55$error = '';
  • wordpress/wp-comments-post.php

     
    11<?php
    2 require( dirname(__FILE__) . '/wp-config.php' );
     2require( './wp-config.php' );
    33
    44nocache_headers();
    55
  • wordpress/wp-blog-header.php

     
    11<?php
    22
    33if (! isset($wp_did_header)):
    4 if ( !file_exists( dirname(__FILE__) . '/wp-config.php') ) {
     4if ( !file_exists( './wp-config.php') ) {
    55        if ( strstr( $_SERVER['PHP_SELF'], 'wp-admin') ) $path = '';
    66        else $path = 'wp-admin/';
    77    die("There doesn't seem to be a <code>wp-config.php</code> file. I need this before we can get started. Need more help? <a href='http://wordpress.org/docs/faq/#wp-config'>We got it</a>. You can <a href='{$path}setup-config.php'>create a <code>wp-config.php</code> file through a web interface</a>, but this doesn't work for all server setups. The safest way is to manually create the file.");
     
    99
    1010$wp_did_header = true;
    1111
    12 require_once( dirname(__FILE__) . '/wp-config.php');
     12require_once( './wp-config.php');
    1313
    1414wp();
    1515gzip_compression();
     
    1818
    1919endif;
    2020
    21 ?>
    22  Sin fin-de-línea al final del archivo
     21?>
  • wordpress/wp-rdf.php

     
    11<?php /* RDF 1.0 generator, original version by garym@teledyn.com */
    22
    33if (empty($wp)) {
    4         require_once('wp-config.php');
     4        require_once('./wp-config.php');
    55        wp('feed=rdf');
    66}
    77
  • wordpress/wp-mail.php

     
    11<?php
    2 require(dirname(__FILE__) . '/wp-config.php');
     2require('./wp-config.php');
    33
    44require_once(ABSPATH.WPINC.'/class-pop3.php');
    55
     
    163163
    164164$pop3->quit();
    165165
    166 ?>
    167  Sin fin-de-línea al final del archivo
     166?>
  • wordpress/wp-trackback.php

     
    11<?php
    22
    33if (empty($wp)) {
    4         require_once('wp-config.php');
     4        require_once('./wp-config.php');
    55        wp('tb=1');
    66}
    77
     
    9595        do_action('trackback_post', $wpdb->insert_id);
    9696        trackback_response(0);
    9797}
    98 ?>
    99  Sin fin-de-línea al final del archivo
     98?>
  • wordpress/wp-rss2.php

     
    11<?php
    22
    33if (empty($wp)) {
    4         require_once('wp-config.php');
     4        require_once('./wp-config.php');
    55        wp('feed=rss2');
    66}
    77
  • wordpress/wp-commentsrss2.php

     
    11<?php
    22
    33if (empty($wp)) {
    4         require_once('wp-config.php');
     4        require_once('./wp-config.php');
    55        wp('feed=rss2&withcomments=1');
    66}
    77
  • wordpress/wp-atom.php

     
    11<?php
    22
    33if (empty($wp)) {
    4         require_once('wp-config.php');
     4        require_once('./wp-config.php');
    55        wp('feed=atom');
    66}
    77
  • wordpress/wp-admin/update-links.php

     
    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
    55if ( !get_option('use_linksupdate') )