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

    r25115 r25616  
    3737
    3838/** Load WordPress Administration Upgrade API */
    39 require_once( dirname( __FILE__ ) . '/includes/upgrade.php' );
     39require_once( ABSPATH . 'wp-admin/includes/upgrade.php' );
    4040
    4141/** Load wpdb */
    42 require_once(dirname(dirname(__FILE__)) . '/wp-includes/wp-db.php');
     42require_once( ABSPATH . 'wp-includes/wp-db.php' );
    4343
    4444$step = isset( $_GET['step'] ) ? (int) $_GET['step'] : 0;
Note: See TracChangeset for help on using the changeset viewer.