Make WordPress Core


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

    r25577 r25616  
    88
    99/** WordPress Administration Bootstrap */
    10 require_once( './admin.php' );
     10require_once( dirname( __FILE__ ) . '/admin.php' );
    1111
    1212if ( ! $typenow )
     
    263263$bulk_counts = array_filter( $bulk_counts );
    264264
    265 require_once('./admin-header.php');
     265require_once( ABSPATH . 'wp-admin/admin-header.php' );
    266266?>
    267267<div class="wrap">
     
    323323
    324324<?php
    325 include('./admin-footer.php');
     325include( ABSPATH . 'wp-admin/admin-footer.php' );
Note: See TracChangeset for help on using the changeset viewer.