[wp-trac] [WordPress Trac] #8775: Numbers in quotation marks get wrong smart quotes

WordPress Trac noreply at wordpress.org
Sat Mar 29 22:31:35 UTC 2014


#8775: Numbers in quotation marks get wrong smart quotes
-------------------------------------------------+-------------------------
 Reporter:  filosofo                             |       Owner:
     Type:  defect (bug)                         |      Status:  reopened
 Priority:  normal                               |   Milestone:  Future
Component:  Formatting                           |  Release
 Severity:  normal                               |     Version:  2.8
 Keywords:  has-patch needs-testing wptexturize  |  Resolution:
                                                 |     Focuses:
-------------------------------------------------+-------------------------
Changes (by miqrogroove):

 * keywords:  has-patch needs-testing needs-unit-tests wptexturize => has-
     patch needs-testing wptexturize


Comment:

 New patch against trunk should be much closer to what we need.  In
 miqro-8775.patch:

 * Quoted numbers preceded by spaces get curly quotes.
 * So, "123" works, but"123"blah does not work.
 * Trailing space not required.  Will this break things like '99's?
 * Decimals and commas are allowed after the first digit.
 * nbsp works as whitespace.
 * Regexp will search for quotes first for optimum performance.
 * Unit tests updated to match.

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


More information about the wp-trac mailing list