[wp-trac] [WordPress Trac] #43313: wptexturise uses the wrong curly quote after a closing link tag

WordPress Trac noreply at wordpress.org
Wed Feb 14 11:10:28 UTC 2018


#43313: wptexturise uses the wrong curly quote after a closing link tag
--------------------------+------------------------------
 Reporter:  andfinally    |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Formatting    |     Version:
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by andfinally):

 In case useful to anybody, I've added this filter to my theme as a
 temporary fix:

 {{{#!php
 <?php
 function fix_left_single_quotes( $content ) {
         $content= str_replace(['</a>‘'], ['</a>’'], $content
 );

         return $content;
 }

 add_filter( 'the_content', 'fix_left_single_quotes', 11 );
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/43313#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list