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/nav-menus.php

    r25218 r25616  
    1111
    1212/** Load WordPress Administration Bootstrap */
    13 require_once( './admin.php' );
     13require_once( dirname( __FILE__ ) . '/admin.php' );
    1414
    1515// Load all the nav menu interface functions
     
    531531
    532532// Get the admin header
    533 require_once( './admin-header.php' );
     533require_once( ABSPATH . 'wp-admin/admin-header.php' );
    534534?>
    535535<div class="wrap">
     
    763763        <?php endif; ?>
    764764</div><!-- /.wrap-->
    765 <?php include( './admin-footer.php' ); ?>
     765<?php include( ABSPATH . 'wp-admin/admin-footer.php' ); ?>
Note: See TracChangeset for help on using the changeset viewer.