WordPress.org

Make WordPress Core

Ticket #4801: 4801.diff

File 4801.diff, 632 bytes (added by rob1n, 6 years ago)
  • wp-includes/post.php

     
    16701670        } else { 
    16711671                $lastpostdate = $cache_lastpostdate[$blog_id][$timezone]; 
    16721672        } 
    1673         return $lastpostdate; 
     1673        return apply_filters( 'get_lastpostdate', $lastpostdate ); 
    16741674} 
    16751675 
    16761676function get_lastpostmodified($timezone = 'server') { 
     
    16971697        } else { 
    16981698                $lastpostmodified = $cache_lastpostmodified[$blog_id][$timezone]; 
    16991699        } 
    1700         return $lastpostmodified; 
     1700        return apply_filters( 'get_lastpostmodified', $lastpostmodified ); 
    17011701} 
    17021702 
    17031703//