WordPress.org

Make WordPress Core


Ignore:
Timestamp:
04/18/2010 06:14:45 AM (12 years ago)
Author:
nacin
Message:

Use relative paths when including files, avoiding include_path. fixes #12594, props sorich87.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/comment.php

    r13571 r14139  
    88
    99/** Load WordPress Bootstrap */
    10 require_once('admin.php');
     10require_once('./admin.php');
    1111
    1212$parent_file = 'edit-comments.php';
     
    3737function comment_footer_die( $msg ) {
    3838    echo "<div class='wrap'><p>$msg</p></div>";
    39     include('admin-footer.php');
     39    include('./admin-footer.php');
    4040    die;
    4141}
     
    4747
    4848    wp_enqueue_script('comment');
    49     require_once('admin-header.php');
     49    require_once('./admin-header.php');
    5050
    5151    $comment_id = absint( $_GET['c'] );
     
    6262    $comment = get_comment_to_edit( $comment_id );
    6363
    64     include('edit-form-comment.php');
     64    include('./edit-form-comment.php');
    6565
    6666    break;
     
    8989    }
    9090
    91     require_once('admin-header.php');
     91    require_once('./admin-header.php');
    9292
    9393    $formaction    = $action . 'comment';
     
    277277} // end switch
    278278
    279 include('admin-footer.php');
     279include('./admin-footer.php');
    280280
    281281?>
Note: See TracChangeset for help on using the changeset viewer.