#2785 closed defect (bug) (fixed)
wp-includes/classes.php loop not incrementing $tok_index
| Reported by: | debuntu | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | General | Version: | 2.0 |
| Severity: | trivial | Keywords: | has-patch |
| Cc: | Focuses: |
Description
It seems that something is missing in wp-includes/classes.php . At line 1022:
$tok_index = 1;
foreach ($tokens[0] as $token) {
if ( ($token == '%post_id%') && ($tok_index <= 3) ) {
$front = $front . 'date/';
break;
}
}
$tok_index is never increased?!? This force writing "date/" in front of archives pages.
there should be $tok_index++ after the if(){} condition.
Check this thread:
http://wordpress.org/support/topic/67914
Attachments (2)
Change History (5)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Pacthes for 2.0 and trunk attached which implement the fix mentioned in the ticket.