Ticket #3349: 2.0.5-phantom-wp-config-consistency.diff
File 2.0.5-phantom-wp-config-consistency.diff, 5.3 KB (added by , 18 years ago) |
---|
-
wordpress/wp-pass.php
1 1 <?php 2 require( dirname(__FILE__) . '/wp-config.php');2 require('./wp-config.php'); 3 3 4 4 if ( get_magic_quotes_gpc() ) 5 5 $_POST['post_password'] = stripslashes($_POST['post_password']); … … 8 8 setcookie('wp-postpass_' . COOKIEHASH, $_POST['post_password'], time() + 864000, COOKIEPATH); 9 9 10 10 wp_redirect(wp_get_referer()); 11 ?> 12 Sin fin-de-línea al final del archivo 11 ?> -
wordpress/wp-rss.php
1 1 <?php 2 2 3 3 if (empty($wp)) { 4 require_once(' wp-config.php');4 require_once('./wp-config.php'); 5 5 wp('feed=rss'); 6 6 } 7 7 -
wordpress/wp-login.php
1 1 <?php 2 require( dirname(__FILE__) . '/wp-config.php' );2 require( './wp-config.php' ); 3 3 4 4 $action = $_REQUEST['action']; 5 5 $error = ''; -
wordpress/wp-comments-post.php
1 1 <?php 2 require( dirname(__FILE__) . '/wp-config.php' );2 require( './wp-config.php' ); 3 3 4 4 nocache_headers(); 5 5 -
wordpress/wp-blog-header.php
1 1 <?php 2 2 3 3 if (! isset($wp_did_header)): 4 if ( !file_exists( dirname(__FILE__) . '/wp-config.php') ) {4 if ( !file_exists( './wp-config.php') ) { 5 5 if ( strstr( $_SERVER['PHP_SELF'], 'wp-admin') ) $path = ''; 6 6 else $path = 'wp-admin/'; 7 7 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."); … … 9 9 10 10 $wp_did_header = true; 11 11 12 require_once( dirname(__FILE__) . '/wp-config.php');12 require_once( './wp-config.php'); 13 13 14 14 wp(); 15 15 gzip_compression(); … … 18 18 19 19 endif; 20 20 21 ?> 22 Sin fin-de-línea al final del archivo 21 ?> -
wordpress/wp-rdf.php
1 1 <?php /* RDF 1.0 generator, original version by garym@teledyn.com */ 2 2 3 3 if (empty($wp)) { 4 require_once(' wp-config.php');4 require_once('./wp-config.php'); 5 5 wp('feed=rdf'); 6 6 } 7 7 -
wordpress/wp-mail.php
1 1 <?php 2 require( dirname(__FILE__) . '/wp-config.php');2 require('./wp-config.php'); 3 3 4 4 require_once(ABSPATH.WPINC.'/class-pop3.php'); 5 5 … … 163 163 164 164 $pop3->quit(); 165 165 166 ?> 167 Sin fin-de-línea al final del archivo 166 ?> -
wordpress/wp-trackback.php
1 1 <?php 2 2 3 3 if (empty($wp)) { 4 require_once(' wp-config.php');4 require_once('./wp-config.php'); 5 5 wp('tb=1'); 6 6 } 7 7 … … 95 95 do_action('trackback_post', $wpdb->insert_id); 96 96 trackback_response(0); 97 97 } 98 ?> 99 Sin fin-de-línea al final del archivo 98 ?> -
wordpress/wp-rss2.php
1 1 <?php 2 2 3 3 if (empty($wp)) { 4 require_once(' wp-config.php');4 require_once('./wp-config.php'); 5 5 wp('feed=rss2'); 6 6 } 7 7 -
wordpress/wp-commentsrss2.php
1 1 <?php 2 2 3 3 if (empty($wp)) { 4 require_once(' wp-config.php');4 require_once('./wp-config.php'); 5 5 wp('feed=rss2&withcomments=1'); 6 6 } 7 7 -
wordpress/wp-atom.php
1 1 <?php 2 2 3 3 if (empty($wp)) { 4 require_once(' wp-config.php');4 require_once('./wp-config.php'); 5 5 wp('feed=atom'); 6 6 } 7 7 -
wordpress/wp-admin/update-links.php
1 1 <?php 2 require_once( dirname( dirname(__FILE__) ) . '/wp-config.php');2 require_once( '../wp-config.php'); 3 3 require_once( ABSPATH . 'wp-includes/class-snoopy.php'); 4 4 5 5 if ( !get_option('use_linksupdate') )