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

WordPress Trac noreply at wordpress.org
Sun Feb 22 21:37:52 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:  has-patch needs-testing  |     Focuses:
-------------------------------------+---------------------------

Comment (by boonebgorges):

 Thanks, valendesigns. You're right about nextpage - I hadn't been thinking
 of the case of invalid page numbers. On that note, I've added a few more
 tests, and tweaked the logic a bit more. Take the following two cases:

 1. A post called `02` with two instances of `<!--nextpage-->`.
 `example.com/2015/02/05` is not a valid page, so should resolve to the day
 archive. (Your patch did this.)
 2. A post called `02` with *no* instances of `<!--nextpage-->`.
 `example.com/2015/02/05` is not a valid page, so should resolve to the day
 archive. (Your patch did not do this, but [attachment:5305.9.diff] does.)

 I also reorganized the comments to narrate the flow a bit better. Let me
 know what you think.

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


More information about the wp-trac mailing list