[wp-trac] [WordPress Trac] #13701: 404 Error for wp_get_archives

WordPress Trac wp-trac at lists.automattic.com
Sun Sep 9 00:02:57 UTC 2012


#13701: 404 Error for wp_get_archives
-------------------------------------------------+-------------------------
 Reporter:  RevelationTravis                     |       Owner:
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:  Future
Component:  Rewrite Rules                        |  Release
 Severity:  normal                               |     Version:  2.9.2
 Keywords:  wp3.0 multi-site-too has-patch dev-  |  Resolution:
  feedback                                       |
-------------------------------------------------+-------------------------
Changes (by wonderboymusic):

 * keywords:  needs-patch wp3.0 multi-site-too => wp3.0 multi-site-too has-
     patch dev-feedback
 * component:  Date/Time => Rewrite Rules


Comment:

 This one was a doozy. Rewrite in most cases is trying to build rules by
 taking a list of tokens and looping / accumulating them in order. This
 doesn't work when we flip the date permastruct on its ear, because "day"
 can't be out there by himself.

 No matter what the endianness of the date, "year" always has to have its
 own rule, as does "monthnum / year", regardless of order. This requires
 some if / else intervention in generate_rewrite_rules, which is mighty
 hard to do completely elegant because a big portion of the method is a
 ginormous loop.

 Patch attached.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/13701#comment:13>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list