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/network/site-settings.php

    r24120 r25616  
    99
    1010/** Load WordPress Administration Bootstrap */
    11 require_once( './admin.php' );
     11require_once( dirname( __FILE__ ) . '/admin.php' );
    1212
    1313if ( ! is_multisite() )
     
    7878$submenu_file = 'sites.php';
    7979
    80 require('../admin-header.php');
     80require( ABSPATH . 'wp-admin/admin-header.php' );
    8181
    8282?>
     
    153153</div>
    154154<?php
    155 require('../admin-footer.php');
     155require( ABSPATH . 'wp-admin/admin-footer.php' );
Note: See TracChangeset for help on using the changeset viewer.