WordPress.org

Make WordPress Core

Ticket #2866: supplementary-phantom-fix.diff

File supplementary-phantom-fix.diff, 2.0 KB (added by RuddO, 12 years ago)

Supplementary fixes for some files

  • wp-pass.php

     
    11<?php
    2 require( dirname(__FILE__) . '/wp-config.php');
     2require( getcwd() . '/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($_SERVER['HTTP_REFERER']);
    11 ?>
    12  Sin fin-de-línea al final del archivo
     11?>
  • wp-comments-post.php

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

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

     
    11<?php
    2 require(dirname(__FILE__) . '/wp-config.php');
     2require( getcwd() . '/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?>
  • wp-admin/update-links.php

     
    11<?php
    2 require_once( dirname( dirname(__FILE__) ) . '/wp-config.php');
     2require_once( getcwd() . '/wp-config.php');
    33require_once( ABSPATH . 'wp-includes/class-snoopy.php');
    44
    55if ( !get_option('use_linksupdate') )