Created
January 18, 2016 07:48
-
-
Save ambercouch/d5e32542c37717bd5cfd to your computer and use it in GitHub Desktop.
Contact form 7 breaks when using JP Custom CSS. This is the fix.
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 | |
class Jetpack { | |
/** | |
* Get $content_width, but with a <s>twist</s> filter. | |
*/ | |
public static function get_content_width() { | |
$content_width = isset( $GLOBALS['content_width'] ) ? $GLOBALS['content_width'] : false; | |
return apply_filters( 'jetpack_content_width', $content_width ); | |
} | |
/** | |
* Prevents other plugins breaking when testing the jetpack class | |
*/ | |
public static function __callStatic($name, $arguments) { | |
return false; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment