[wp-trac] [WordPress Trac] #63835: Admin pages listing displays post time instead of modified time for posts with status not equal "published"

WordPress Trac noreply at wordpress.org
Sun Aug 17 19:33:01 UTC 2025


#63835: Admin pages listing displays post time instead of modified time for posts
with status not equal "published"
-------------------------------------+------------------------------
 Reporter:  gchriz                   |       Owner:  (none)
     Type:  defect (bug)             |      Status:  new
 Priority:  normal                   |   Milestone:  Awaiting Review
Component:  Administration           |     Version:  6.8.2
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |     Focuses:
-------------------------------------+------------------------------

Comment (by gchriz):

 One comment regarding your above mentioned patch in
 [https://github.com/WordPress/wordpress-develop/pull/9501 PR #9501]:

 Now there are two places where the status (publish, future) is checked
 for.

 First in your new line
 {{{
 $use_modified_time = ! in_array( $post->post_status, array( 'publish',
 'future' ), true );
 }}}
 and a couple of lines later in the original if/elseif/else statement.

 That's working but it might get out of sync easily in future changes.

 Conclusion:

 There is always more than one way to solve a problem!  ;-)

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


More information about the wp-trac mailing list