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/edit-comments.php

    r25439 r25616  
    88
    99/** WordPress Administration Bootstrap */
    10 require_once('./admin.php');
     10require_once( dirname( __FILE__ ) . '/admin.php' );
    1111if ( !current_user_can('edit_posts') )
    1212    wp_die(__('Cheatin’ uh?'));
     
    137137);
    138138
    139 require_once('./admin-header.php');
     139require_once( ABSPATH . 'wp-admin/admin-header.php' );
    140140?>
    141141
     
    253253wp_comment_reply('-1', true, 'detail');
    254254wp_comment_trashnotice();
    255 include('./admin-footer.php'); ?>
     255include( ABSPATH . 'wp-admin/admin-footer.php' ); ?>
Note: See TracChangeset for help on using the changeset viewer.