WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #26842, comment 23


Ignore:
Timestamp:
03/24/2017 02:31:11 AM (3 years ago)
Author:
CK MacLeod
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #26842, comment 23

    initial v1  
    1111
    1212{{{
    13 add_filter( 'content_save_pre', 'remove_nbsps' ) ;
     13add_filter( 'content_save_pre', 'remove_buggy_nbsps', 99 );
    1414
    15 function remove_nbsps( $content ) {
     15function remove_buggy_nbsps( $content ) {
    1616
    17      $content = str_replace( ' ', ' ', $content ) ;
    18 
    19      return $content ;
     17   return str_replace( '\xc2\xa0', ' ', $content);
    2018
    2119}