Created
April 2, 2018 20:06
-
-
Save barryhughes/ddb135b2059da2182326295df05cc3ed to your computer and use it in GitHub Desktop.
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 Resolve_Tribe_Customizer_JS_Error { | |
static function init() { | |
add_action( 'wp_print_footer_scripts', array( __CLASS__, 'capture' ), 14 ); | |
add_action( 'wp_print_footer_scripts', array( __CLASS__, 'filter' ), 16 ); | |
} | |
static function capture() { | |
ob_start(); | |
} | |
static function filter() { | |
print str_replace( | |
'id="tmpl-tribe_customizer_css"', | |
'type="text/css" id="tmpl-tribe_customizer_css"', | |
ob_get_clean() | |
); | |
} | |
} | |
Resolve_Tribe_Customizer_JS_Error::init(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment