[wp-trac] [WordPress Trac] #26850: Single quotes show up as apostrophes when appearing before numbers
WordPress Trac
noreply at wordpress.org
Mon Jan 27 19:34:41 UTC 2014
#26850: Single quotes show up as apostrophes when appearing before numbers
-------------------------------------------------+-------------------------
Reporter: yurivictor | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Future
Component: Formatting | Release
Severity: minor | Version: trunk
Keywords: needs-patch wptexturize needs-unit- | Resolution:
tests | Focuses:
-------------------------------------------------+-------------------------
Comment (by yurivictor):
Made a dirty patch [attachment:26850.diff].
Forces regex to search for two digits in a row, rather than any digit.
e.g. Finds '99 as a year, but not '9.
The rest will go through the normal wptexturize flow, which appropriately
styles the apostrophes. Doesn't solve all use cases, but it's a start.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/26850#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list