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/post-new.php

    r25453 r25616  
    88
    99/** Load WordPress Administration Bootstrap */
    10 require_once('./admin.php');
     10require_once( dirname( __FILE__ ) . '/admin.php' );
    1111
    1212if ( !isset($_GET['post_type']) )
     
    6363$post = get_default_post_to_edit( $post_type, true );
    6464$post_ID = $post->ID;
    65 include('edit-form-advanced.php');
    66 include('./admin-footer.php');
     65include( ABSPATH . 'wp-admin/edit-form-advanced.php' );
     66include( ABSPATH . 'wp-admin/admin-footer.php' );
Note: See TracChangeset for help on using the changeset viewer.