Make WordPress Core


Ignore:
Timestamp:
09/25/2013 12:17:40 AM (11 years ago)
Author:
nacin
Message:

Don't rely on include_path to include files.

Always use dirname() or, once available, ABSPATH.

props ketwaroo, hakre.
fixes #17092.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/import.php

    r22632 r25616  
    1010
    1111/** Load WordPress Bootstrap */
    12 require_once ('admin.php');
     12require_once( dirname( __FILE__ ) . '/admin.php' );
    1313
    1414if ( !current_user_can('import') )
     
    4848wp_enqueue_script( 'plugin-install' );
    4949
    50 require_once ('admin-header.php');
     50require_once( ABSPATH . 'wp-admin/admin-header.php' );
    5151$parent_file = 'tools.php';
    5252?>
     
    131131<?php
    132132
    133 include ('admin-footer.php');
     133include( ABSPATH . 'wp-admin/admin-footer.php' );
Note: See TracChangeset for help on using the changeset viewer.