[wp-trac] [WordPress Trac] #5305: permalinks broken when article name is numeric

WordPress Trac noreply at wordpress.org
Fri Jan 23 09:51:39 UTC 2015


#5305: permalinks broken when article name is numeric
--------------------------------------+-----------------------
 Reporter:  thomask                   |       Owner:
     Type:  defect (bug)              |      Status:  assigned
 Priority:  normal                    |   Milestone:  4.2
Component:  Permalinks                |     Version:  2.3.1
 Severity:  major                     |  Resolution:
 Keywords:  good-first-bug has-patch  |     Focuses:
--------------------------------------+-----------------------

Comment (by 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.

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


More information about the wp-trac mailing list