[wp-trac] [WordPress Trac] #26850: Single quotes show up as apostrophes when appearing before numbers (was: Single quotes show up as apostrophes when appearing before numbers in the_title())
WordPress Trac
noreply at wordpress.org
Fri Jan 17 19:58:11 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 |
-------------------------------------------------+-------------------------
Changes (by nacin):
* keywords: needs-patch wptexturize => needs-patch wptexturize needs-unit-
tests
* milestone: Awaiting Review => Future Release
Comment:
This isn't the_title() only; it's wptexturize().
The rule is designed for years. So, `'99` or `'99's` gets rendered with an
apostrophe preceeding the `99`. In this case, it isn't a year, it's only
one digit. So that should handle at least 0-9 and 100+. What about 10-99?
In this case, it's the start of a quote. If we can manage to process that
there is a closing quote as well, versus just a standalone number, it's
probably a better bet to assume that we're dealing with a quote rather
than a year, which is much more rare.
This some needs unit tests. Also is possibly a duplicate of
[https://core.trac.wordpress.org/query?status=!closed&keywords=~wptexturize&component=Formatting
another wptexturize() ticket] (most of which also need unit tests).
--
Ticket URL: <https://core.trac.wordpress.org/ticket/26850#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list