Opened 8 years ago
Closed 7 years ago
#40845 closed defect (bug) (fixed)
Incomplete `get_the_modified_(date|time)` filter docs
Reported by: | dlh | Owned by: | DrewAPicture |
---|---|---|---|
Milestone: | 4.9 | Priority: | normal |
Severity: | normal | Version: | 4.6 |
Component: | General | Keywords: | has-patch |
Focuses: | docs | Cc: |
Description
Both get_the_modified_date()
and get_the_modified_time()
set the $post
variable to the return value of get_post()
. As noted in code comments within each function, For backward compatibility, failures go through the filter below
(see [37866]). However, the "official" filter docs don't specify that null
is a possible type for $post
. The attached patch would amend the filter docs to include that note.
Attachments (2)
Change History (5)
Note: See
TracTickets for help on using
tickets.
40845.2.diff also amends docs for
$the_time
to note the possiblebool
value.