Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Change Escaping Method for GUIDs in WordPress
<?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