Equality checks in query.php can break permalinks
|Reported by:||agharbeia||Owned by:||markjaquith|
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%
Change History (10)
10 years ago
- Summary changed from problem in permalinks consisting solely of date/time elements to permalink unresolvable when it consists solely of date/time elements
- Priority changed from normal to high
- Severity changed from normal to major
- Summary changed from permalink unresolvable when it consists solely of date/time elements to Equality checks in query.php can break permalinks
10 years ago
- Keywords has-patch added; needs-patch removed
- Milestone changed from 2.2.2 to 2.3 (trunk)
- Owner changed from anonymous to markjaquith
- Status changed from new to assigned