Opened 6 years ago
Closed 5 years ago
#4818 closed defect (bug) (fixed)
$newday global declaration is unnecessary, and $currentmonth not global'ed
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | low | Milestone: | 2.3 |
| Component: | Template | Version: | 2.3 |
| Severity: | normal | Keywords: | |
| Cc: |
Description
Attachments (2)
Change History (7)
comment:1
JeremyVisser — 6 years ago
comment:2
JeremyVisser — 6 years ago
- Severity changed from trivial to normal
- Summary changed from $newday global declaration is unnecessary to $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.)
- Resolution set to fixed
- Status changed from new to closed
comment:4
JeremyVisser — 6 years ago
- Milestone changed from 2.3 to 2.2.3
- Resolution fixed deleted
- Status changed from closed to reopened
- Version changed from 2.3 to 2.2.2
Backport to 2.2.3?
Note: See
TracTickets for help on using
tickets.

Sorry, blank ticket.
In wp-includes/general-template.php, there is a global declaration of $newday in function the_date(), but it is never used. Attaching a patch to get rid of it.