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-form-advanced.php

    r25572 r25616  
    108108
    109109// All meta boxes should be defined and added before the first do_meta_boxes() call (or potentially during the do_meta_boxes action).
    110 require_once('./includes/meta-boxes.php');
     110require_once( ABSPATH . 'wp-admin/includes/meta-boxes.php' );
    111111
    112112
     
    310310}
    311311
    312 require_once('./admin-header.php');
     312require_once( ABSPATH . 'wp-admin/admin-header.php' );
    313313?>
    314314
Note: See TracChangeset for help on using the changeset viewer.