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/options.php

    r25372 r25616  
    1717
    1818/** WordPress Administration Bootstrap */
    19 require_once('./admin.php');
     19require_once( dirname( __FILE__ ) . '/admin.php' );
    2020
    2121$title = __('Settings');
     
    198198}
    199199
    200 include('./admin-header.php'); ?>
     200include( ABSPATH . 'wp-admin/admin-header.php' ); ?>
    201201
    202202<div class="wrap">
     
    254254
    255255<?php
    256 include('./admin-footer.php');
     256include( ABSPATH . 'wp-admin/admin-footer.php' );
Note: See TracChangeset for help on using the changeset viewer.