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

WordPress Trac noreply at wordpress.org
Tue Feb 10 02:13:06 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     |     Focuses:
--------------------------+---------------------------
Changes (by valendesigns):

 * keywords:  needs-patch => has-patch


Comment:

 OK, so patch [attachment:5305.3.diff] should solve this issue. After
 trying a couple different things I stumbled into
 `WP_Rewrite::get_date_permastruct` where the solution was staring me in
 the face. We already have some code in place that was preventing
 `%post_id%` collisions. All I did was extend the current implementation to
 include fixes for the offending `%postname%` permalink structures.

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


More information about the wp-trac mailing list