[wp-trac] [WordPress Trac] #64496: Type Error with gmdate() in dashboard Activity widget

WordPress Trac noreply at wordpress.org
Sat Jan 17 06:38:36 UTC 2026


#64496: Type Error with gmdate() in dashboard Activity widget
----------------------------+--------------------------
 Reporter:  vanhoucke       |       Owner:  westonruter
     Type:  defect (bug)    |      Status:  closed
 Priority:  normal          |   Milestone:  7.0
Component:  Administration  |     Version:  6.9
 Severity:  normal          |  Resolution:  fixed
 Keywords:  has-patch       |     Focuses:  ui
----------------------------+--------------------------
Changes (by westonruter):

 * status:  reviewing => closed
 * resolution:   => fixed


Comment:

 In [changeset:"61495" 61495]:
 {{{
 #!CommitTicketReference repository="" revision="61495"
 Administration: Avoid PHP type error with `gmdate()` in
 `wp_dashboard_recent_posts()`.

 This fixes an issue when a non-integer is returned by `get_the_time( 'U'
 )` which can occur when a plugin filters `get_the_time`. In this case, the
 non-relative date is displayed in the Activity dashboard widget.

 Developed in https://github.com/WordPress/wordpress-develop/pull/10729

 Follow-up to [26690], [26242].

 Props sabernhardt, vanhoucke, westonruter.
 Fixes #64496.
 }}}

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


More information about the wp-trac mailing list