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/admin-post.php

    r25589 r25616  
    1515    require_once(ABSPATH . 'wp-load.php');
    1616else
    17     require_once('../wp-load.php');
     17    require_once( dirname( dirname( __FILE__ ) ) . '/wp-load.php' );
    1818
    1919/** Allow for cross-domain requests (from the frontend). */
Note: See TracChangeset for help on using the changeset viewer.