Opened 17 years ago
Closed 16 years ago
#4818 closed defect (bug) (fixed)
$newday global declaration is unnecessary, and $currentmonth not global'ed
Reported by: | JeremyVisser | Owned by: | |
---|---|---|---|
Milestone: | 2.3 | Priority: | low |
Severity: | normal | Version: | 2.3 |
Component: | Template | Keywords: | |
Focuses: | Cc: |
Description
Attachments (2)
Change History (7)
#2
@
17 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.)
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 functionthe_date()
, but it is never used. Attaching a patch to get rid of it.