Created
March 11, 2015 23:37
-
-
Save stevenkword/59c994b7ca8925d47f61 to your computer and use it in GitHub Desktop.
Change Escaping Method for GUIDs in WordPress
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 | |
remove_filter( 'the_guid', 'esc_url' ); | |
function html_escape_the_guid( $guid ) { | |
return esc_html( $guid ); | |
} | |
add_filter( 'the_guid', 'html_escape_the_guid' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment