Created
June 6, 2012 22:23
-
-
Save staylor/2885201 to your computer and use it in GitHub Desktop.
Load barebones for Facebook OAuth handshake
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Set DOING_AJAX so the app doesn't try to set eMusic cookies | |
* | |
*/ | |
define( 'DOING_AJAX', 1 ); | |
define( 'SHORTINIT', 1 ); | |
require( $_SERVER['DOCUMENT_ROOT'] . '/wordpress/wp-load.php' ); | |
require( WP_CONTENT_DIR . '/mu-plugins/emusic-auth.php' ); | |
require( ABSPATH . WPINC . '/capabilities.php' ); | |
require( ABSPATH . WPINC . '/user.php' ); | |
require( ABSPATH . WPINC . '/meta.php' ); | |
require( ABSPATH . WPINC . '/general-template.php' ); | |
require( ABSPATH . WPINC . '/link-template.php' ); | |
require( ABSPATH . WPINC . '/formatting.php' ); | |
require( ABSPATH . WPINC . '/kses.php' ); | |
require( ABSPATH . WPINC . '/pluggable.php' ); | |
require( ABSPATH . WPINC . '/ms-functions.php' ); | |
require( ABSPATH . WPINC . '/ms-default-filters.php' ); | |
require( ABSPATH . WPINC . '/ms-deprecated.php' ); | |
wp_plugin_directory_constants(); | |
ms_cookie_constants(); | |
wp_cookie_constants(); | |
do_action( 'facebook-init' ); | |
global $current_user; | |
wp_get_current_user(); | |
....................... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment