[wp-trac] [WordPress Trac] #29256: Strings ending with a number and quotation mark get wrong smart quotes

WordPress Trac noreply at wordpress.org
Sun Sep 14 16:25:37 UTC 2014


#29256: Strings ending with a number and quotation mark get wrong smart quotes
---------------------------------------------+------------------
 Reporter:  coreygilmore                     |       Owner:
     Type:  defect (bug)                     |      Status:  new
 Priority:  normal                           |   Milestone:  4.1
Component:  Formatting                       |     Version:  2.8
 Severity:  normal                           |  Resolution:
 Keywords:  wptexturize has-patch 4.1-early  |     Focuses:
---------------------------------------------+------------------

Comment (by miqrogroove):

 A few more thoughts:

 Patch will need to be refreshed after 4.0.1.

 Patch did not add any new tests for cases like {{{Fred answered the
 problem with '99' and then turned in the test.}}}  It would be helpful to
 look into whether the complexity would be increased or decreased by
 bringing in logic for quoted 2-digit numbers.  This is the situation where
 we have to distinguish between an abbreviated year at the end of a
 quotation vs. a standalone quoted 2-digit number.  If we can remove those
 extra regex patterns from the main function and incorporate them here, it
 might give better and faster results.

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


More information about the wp-trac mailing list