#3801 closed defect (bug) (fixed)
wp_title function missing day in archives by day and unwanted $sep when month empty
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 2.2 | Priority: | normal |
Severity: | normal | Version: | 2.1 |
Component: | Template | Keywords: | has-patch |
Focuses: | Cc: |
Description
File: "general-template.php", line 193-214, wp_title function:
- should add the day in archives by day mode.
- shouldn't add a trailing $sep when $my_month is empty (new 2.1 archives by year option).
Suggested change:
#193 $title = "$my_year $sep $my_month";
to
#193 $my_day = intval(substr($m, 6, 2)); #194 $title = "$my_year" . ($my_month ? "$sep $my_month" : "") . ($my_day ? "$sep $my_day" : "");
(searched for "archives" + "day", "archives" + "space", "wp_title")
Attachments (1)
Note: See
TracTickets for help on using
tickets.
Patch based on given code snippet added.