Last active
January 17, 2019 21:31
-
-
Save adamcapriola/51fdba135762b50b7b663aa4be468610 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 | |
/** | |
* Remove 's | |
* @link https://core.trac.wordpress.org/ticket/31157 | |
* @link https://core.trac.wordpress.org/ticket/31676 | |
* | |
*/ | |
add_filter( 'the_content', 'ac_remove_nbsps', 10 ); // Adjust priorities if necessary | |
add_filter( 'widget_text', 'ac_remove_nbsps', 10 ); | |
function ac_remove_nbsps( $contentt ) { | |
return str_replace( "\xc2\xa0", ' ', $content ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment