diff --git src/wp-includes/post.php src/wp-includes/post.php
index f97318e..a4f3b15 100644
|
|
|
function get_lastpostdate( $timezone = 'server' ) {
|
| 5325 | 5325 | } |
| 5326 | 5326 | |
| 5327 | 5327 | /** |
| 5328 | | * Retrieve last post modified date depending on timezone. |
| | 5328 | * Get the timestamp of the last time any post was modified. |
| 5329 | 5329 | * |
| 5330 | 5330 | * The server timezone is the default and is the difference between GMT and |
| 5331 | 5331 | * server time. The 'blog' value is just when the last post was modified. The |
| … |
… |
function get_lastpostdate( $timezone = 'server' ) {
|
| 5333 | 5333 | * |
| 5334 | 5334 | * @since 1.2.0 |
| 5335 | 5335 | * |
| 5336 | | * @param string $timezone The location to get the time. Accepts 'gmt', 'blog', or 'server'. |
| 5337 | | * Default 'server'. |
| 5338 | | * @return string The date the post was last modified. |
| | 5336 | * @param string $timezone The timezone for the timestamp. Defaults to 'server', accepts 'server', 'blog', 'gmt'. |
| | 5337 | * 'server' uses the server's internal timezone. |
| | 5338 | * 'blog' uses the post_modified field, which proxies to the timezone set for the site. |
| | 5339 | * 'gmt' uses the post_modified_gmt field. |
| | 5340 | * @return string The timestamp. |
| 5339 | 5341 | */ |
| 5340 | 5342 | function get_lastpostmodified( $timezone = 'server' ) { |
| 5341 | 5343 | $lastpostmodified = _get_last_post_time( $timezone, 'modified' ); |
| … |
… |
function get_lastpostmodified( $timezone = 'server' ) {
|
| 5356 | 5358 | } |
| 5357 | 5359 | |
| 5358 | 5360 | /** |
| 5359 | | * Retrieve latest post date data based on timezone. |
| | 5361 | * Get the timestamp of the last time any post was modified or published. |
| 5360 | 5362 | * |
| 5361 | 5363 | * @access private |
| 5362 | 5364 | * @since 3.1.0 |
| 5363 | 5365 | * |
| 5364 | | * @param string $timezone The location to get the time. Accepts 'gmt', 'blog', or 'server'. |
| 5365 | | * @param string $field Field to check. Can be 'date' or 'modified'. |
| 5366 | | * @return string The date. |
| | 5366 | * @param string $timezone The timezone for the timestamp. Defaults to 'server', accepts 'server', 'blog', 'gmt'. |
| | 5367 | * 'server' uses the server's internal timezone. |
| | 5368 | * 'blog' uses the post_modified field, which proxies to the timezone set for the site. |
| | 5369 | * 'gmt' uses the post_modified_gmt field. |
| | 5370 | * @param string $field Field to check. Accepts 'date' or 'modified'. |
| | 5371 | * @return string The timestamp. |
| 5367 | 5372 | */ |
| 5368 | 5373 | function _get_last_post_time( $timezone, $field ) { |
| 5369 | 5374 | global $wpdb; |