[wp-trac] [WordPress Trac] #5305: permalinks broken when article name is numeric
WordPress Trac
noreply at wordpress.org
Mon Feb 9 23:25:27 UTC 2015
#5305: permalinks broken when article name is numeric
------------------------------------------+---------------------------
Reporter: thomask | Owner: valendesigns
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: 4.2
Component: Permalinks | Version: 2.3.1
Severity: major | Resolution:
Keywords: needs-patch needs-unit-tests | Focuses:
------------------------------------------+---------------------------
Changes (by valendesigns):
* keywords: good-first-bug has-patch => needs-patch needs-unit-tests
Comment:
Replying to [comment:49 SergeyBiryukov]:
> Replying to [comment:48 Denis-de-Bernardy]:
> > On the appropriate date archive type where we know conflicts may occur
(year, month or day), try treating the offending parameter as if it was a
post ID. This is a nearly free query -- we're looking for a single post.
If a post is found, serve the expected post. If not, either fallback to
serving the date archive as usual, or redirect to something appropriate
(e.g. day url to month url, month url to year url, year url to blog url).
>
> Makes the most sense to me.
I'll start looking into a better long term solution, which doesn't force a
prepend or append on a numeric slug.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/5305#comment:54>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list