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

    r23445 r25616  
    1111
    1212/** Load WordPress Administration Bootstrap */
    13 require_once ('admin.php');
     13require_once( dirname( __FILE__ ) . '/admin.php' );
    1414
    1515wp_reset_vars( array( 'action', 'cat_id', 'link_id' ) );
     
    112112            wp_die(__('Link not found.'));
    113113
    114         include ('edit-link-form.php');
    115         include ('admin-footer.php');
     114        include( ABSPATH . 'wp-admin/edit-link-form.php' );
     115        include( ABSPATH . 'wp-admin/admin-footer.php' );
    116116        break;
    117117
Note: See TracChangeset for help on using the changeset viewer.