Skip to content

Commit

Permalink
Guess where WordPress is
Browse files Browse the repository at this point in the history
  • Loading branch information
staylor committed Dec 21, 2012
1 parent 4d2d24f commit 7534543
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion json.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,14 @@
exit();
}

include_once( './wordpress/wp-load.php' );
/**
* Let's guess where WordPress is!
*/
if ( file_exists( 'wp-load.php' ) )
require_once( './wordpress/wp-load.php' );
elseif ( file_exists( 'wordpress/wp-load.php' ) )
require_once( './wordpress/wp-load.php' );

include_once( ABSPATH . 'wp-admin/includes/admin.php' );

$headers = headers_list();
Expand Down

0 comments on commit 7534543

Please sign in to comment.