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

    r16658 r25616  
    1212
    1313/** Load WordPress Administration Bootstrap */
    14 require_once( './admin.php' );
     14require_once( dirname( __FILE__ ) . '/admin.php' );
    1515
    1616if ( ! is_multisite() )
    1717    wp_die( __( 'Multisite support is not enabled.' ) );
    1818
    19 require( '../plugin-install.php' );
     19require( ABSPATH . 'wp-admin/plugin-install.php' );
Note: See TracChangeset for help on using the changeset viewer.