WordPress.org

Make WordPress Core

Ticket #15499: 15499.diff

File 15499.diff, 528 bytes (added by simonwheatley, 5 years ago)

Diff to cut the get_lastpostdate call from within get_lastpostmodified

  • src/wp-includes/post.php

     
    53125312function get_lastpostmodified($timezone = 'server') {
    53135313        $lastpostmodified = _get_last_post_time( $timezone, 'modified' );
    53145314
    5315         $lastpostdate = get_lastpostdate($timezone);
    5316         if ( $lastpostdate > $lastpostmodified )
    5317                 $lastpostmodified = $lastpostdate;
    5318 
    53195315        /**
    53205316         * Filter the date the last post was modified.
    53215317         *