[wp-trac] [WordPress Trac] #51289: Documentation issue: get_post_time is getting the time when published not when created

WordPress Trac noreply at wordpress.org
Thu Jan 23 00:45:50 UTC 2025


#51289: Documentation issue: get_post_time is getting the time when published not
when created
-----------------------------------------+----------------------
 Reporter:  casiepa                      |       Owner:  pbearne
     Type:  defect (bug)                 |      Status:  closed
 Priority:  normal                       |   Milestone:  6.8
Component:  Date/Time                    |     Version:
 Severity:  normal                       |  Resolution:  fixed
 Keywords:  has-patch changes-requested  |     Focuses:  docs
-----------------------------------------+----------------------

Comment (by SergeyBiryukov):

 In [changeset:"59692" 59692]:
 {{{
 #!CommitTicketReference repository="" revision="59692"
 Docs: Correct description for `the_time()`, `get_the_time()`, and
 `get_post_time()`.

 This aims to avoid confusion with `the_date()` and `get_the_date()`.

 Includes synchronizing the description for `the_weekday()` and
 `the_weekday_date()`, which have very similar functionality, except that
 the latter will only output the weekday if the current post's weekday is
 different from the previous one output.

 Follow-up to [59691].

 See #51289.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/51289#comment:19>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list