Make WordPress Core


Ignore:
Timestamp:
09/25/2013 12:17:40 AM (13 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/network/settings.php

    r24993 r25616  
    99
    1010/** Load WordPress Administration Bootstrap */
    11 require_once( './admin.php' );
     11require_once( dirname( __FILE__ ) . '/admin.php' );
    1212
    1313if ( ! is_multisite() )
     
    7272}
    7373
    74 include( '../admin-header.php' );
     74include( ABSPATH . 'wp-admin/admin-header.php' );
    7575
    7676if ( isset( $_GET['updated'] ) ) {
     
    301301</div>
    302302
    303 <?php include( '../admin-footer.php' ); ?>
     303<?php include( ABSPATH . 'wp-admin/admin-footer.php' ); ?>
Note: See TracChangeset for help on using the changeset viewer.