[wp-trac] [WordPress Trac] #4499: problem in permalinks consisting solely of date/time elements

WordPress Trac wp-trac at lists.automattic.com
Wed Jun 20 16:35:37 GMT 2007


#4499: problem in permalinks consisting solely of date/time elements
-----------------------+----------------------------------------------------
 Reporter:  agharbeia  |       Owner:  anonymous
     Type:  defect     |      Status:  new      
 Priority:  normal     |   Milestone:           
Component:  General    |     Version:  2.2      
 Severity:  normal     |    Keywords:           
-----------------------+----------------------------------------------------
 According to this http://wordpress.org/support/topic/122702,
 there is bug in the way WP 2.2 handles permalinks consisting only of
 date/time elements.

 The blog in which the problem manifests uses the permalink structure
 /%year%/%monthnum%/%day%/%hour%%minute%%second%

 In this case WP fails to uniquely identify a post whose %hour% permalink
 tag resolves to '''zero''', and resorts instead to displaying the archive
 page for the calendar day in which the post referred to by the permalink
 was published, which in turn means that is_single() will always resolve to
 false and that no single post page can ever be obtained.

 Posts having anything other than zero in their %hour% of publication will
 resolve normally.

 Please note that unlike some people might first assume, this permalink
 structure worked in versions before 2.2. WordPress was indeed able to
 handle permalink structures which do not have neither %post_id% nor
 %postname%

-- 
Ticket URL: <http://trac.wordpress.org/ticket/4499>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list