[wp-trac] [WordPress Trac] #4575: Add functions to return the last-modified timestamp of a category/tag

WordPress Trac noreply at wordpress.org
Thu Apr 18 04:51:19 UTC 2019


#4575: Add functions to return the last-modified timestamp of a category/tag
-----------------------------------------+------------------------------
 Reporter:  delusions                    |       Owner:  adamsilverstein
     Type:  enhancement                  |      Status:  reopened
 Priority:  normal                       |   Milestone:  5.2
Component:  Feeds                        |     Version:  2.2.1
 Severity:  normal                       |  Resolution:
 Keywords:  dev-feedback needs-dev-note  |     Focuses:  template
-----------------------------------------+------------------------------

Comment (by pento):

 Thanks for handling this, @adamsilverstein!

 Let's go with [attachment:"4575.14.diff"]. As of WP 5.2, `index.php` is
 the only thing that needs to parse-able in older PHP versions, anything
 outside of that can start adopting newer practices as we see fit.

 One minor thing, it looks like you need to manually fix the indenting on
 the function passed to `array_map()`. WPCS isn't picking it up.

 @jrf: is this a known issue?

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


More information about the wp-trac mailing list