Skip to content

Instantly share code, notes, and snippets.

@lschatzkin
Created February 21, 2013 18:28
Show Gist options
  • Save lschatzkin/5006924 to your computer and use it in GitHub Desktop.
Save lschatzkin/5006924 to your computer and use it in GitHub Desktop.
Modify Jetpack to work in local environment, no WordPress.com account needed. This is found on line 276 of jetpack.php
/**
* Is Jetpack active?
*/
//public static function is_active() {
// return (bool) Jetpack_Data::get_access_token( JETPACK_MASTER_USER );
//}
/* modify Jetpack to work for local environment */
public static function is_active() {
return true;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment