Changeset 48634 for trunk/src/wp-includes/post.php
- Timestamp:
- 07/27/2020 11:15:44 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post.php
r48631 r48634 6606 6606 * 6607 6607 * The server timezone is the default and is the difference between GMT and 6608 * server time. The 'blog' value is the date when the last post was posted. The6609 * 'gmt' is when the last post was posted in GMT formatted date.6608 * server time. The 'blog' value is the date when the last post was posted. 6609 * The 'gmt' is when the last post was posted in GMT formatted date. 6610 6610 * 6611 6611 * @since 0.71 … … 6621 6621 */ 6622 6622 function get_lastpostdate( $timezone = 'server', $post_type = 'any' ) { 6623 $ date = _get_last_post_time( $timezone, 'date', $post_type );6623 $lastpostdate = _get_last_post_time( $timezone, 'date', $post_type ); 6624 6624 6625 6625 /** … … 6629 6629 * @since 5.5.0 Added the `$post_type` parameter. 6630 6630 * 6631 * @param string|false $date Date the last post was published. False on failure. 6632 * @param string $timezone Location to use for getting the post published date. 6633 * See get_lastpostdate() for accepted `$timezone` values. 6634 * @param string $post_type The post type to check. 6631 * @param string|false $lastpostdate The most recent time that a post was published, 6632 * in 'Y-m-d H:i:s' format. False on failure. 6633 * @param string $timezone Location to use for getting the post published date. 6634 * See get_lastpostdate() for accepted `$timezone` values. 6635 * @param string $post_type The post type to check. 6635 6636 */ 6636 6637 return apply_filters( 'get_lastpostdate', $date, $timezone, $post_type ); … … 6641 6642 * 6642 6643 * The server timezone is the default and is the difference between GMT and 6643 * server time. The 'blog' value is just when the last post was modified. The6644 * 'gmt' is when the last post was modified in GMT time.6644 * server time. The 'blog' value is just when the last post was modified. 6645 * The 'gmt' is when the last post was modified in GMT time. 6645 6646 * 6646 6647 * @since 1.2.0 … … 6659 6660 * @since 4.4.0 6660 6661 * 6661 * @param string|false $lastpostmodified The most recent time that a post was modified, in 'Y-m-d H:i:s' format, or 6662 * false. Returning anything other than false will short-circuit the function. 6662 * @param string|false $lastpostmodified The most recent time that a post was modified, 6663 * in 'Y-m-d H:i:s' format, or false. Returning anything 6664 * other than false will short-circuit the function. 6663 6665 * @param string $timezone Location to use for getting the post modified date. 6664 6666 * See get_lastpostdate() for accepted `$timezone` values. … … 6679 6681 6680 6682 /** 6681 * Filters the most recent time that a post was modified.6683 * Filters the most recent time that a post on the site was modified. 6682 6684 * 6683 6685 * @since 2.3.0 6684 6686 * @since 5.5.0 Added the `$post_type` parameter. 6685 6687 * 6686 * @param string|false $lastpostmodified The most recent time that a post was modified, in 'Y-m-d H:i:s' format.6687 * False on failure.6688 * @param string|false $lastpostmodified The most recent time that a post was modified, 6689 * in 'Y-m-d H:i:s' format. False on failure. 6688 6690 * @param string $timezone Location to use for getting the post modified date. 6689 6691 * See get_lastpostdate() for accepted `$timezone` values.
Note: See TracChangeset
for help on using the changeset viewer.