Opened 19 years ago
Closed 19 years ago
#4818 closed defect (bug) (fixed)
$newday global declaration is unnecessary, and $currentmonth not global'ed
| Reported by: | JeremyVisser | Owned by: | |
|---|---|---|---|
| Priority: | low | Milestone: | 2.3 |
| Component: | Template | Version: | 2.3 |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
Description
Attachments (2)
Change History (7)
#2
@
19 years ago
- Severity trivial → normal
- Summary $newday global declaration is unnecessary → $newday global declaration is unnecessary, and $currentmonth not global'ed
In addition, $currentmonth is set in setup_postdate() in wp-includes/query.php, but never global'ed.
(It was preventing me from creating a custom the_month() function like the_date(), making this ticket slightly more serious.)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Sorry, blank ticket.
In
wp-includes/general-template.php, there is a global declaration of$newdayin functionthe_date(), but it is never used. Attaching a patch to get rid of it.