[wp-trac] [WordPress Trac] #40845: Incomplete `get_the_modified_(date|time)` filter docs

WordPress Trac noreply at wordpress.org
Tue May 23 04:13:56 UTC 2017


#40845: Incomplete `get_the_modified_(date|time)` filter docs
--------------------------+-----------------------------
 Reporter:  dlh           |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  4.6
 Severity:  normal        |   Keywords:
  Focuses:  docs          |
--------------------------+-----------------------------
 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.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/40845>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list