Changeset 46973 for trunk/src/wp-includes/post.php
- Timestamp:
- 12/17/2019 08:24:46 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post.php
r46968 r46973 6393 6393 * Default 'server'. 6394 6394 * @param string $post_type Optional. The post type to check. Default 'any'. 6395 * @return string The date of the last post .6395 * @return string The date of the last post, or false on failure. 6396 6396 */ 6397 6397 function get_lastpostdate( $timezone = 'server', $post_type = 'any' ) { … … 6401 6401 * @since 2.3.0 6402 6402 * 6403 * @param string $date Date the last post was published.6404 * @param string $timezone Location to use for getting the post published date.6405 * See get_lastpostdate() for accepted `$timezone` values.6403 * @param string|false $date Date the last post was published. False on failure. 6404 * @param string $timezone Location to use for getting the post published date. 6405 * See get_lastpostdate() for accepted `$timezone` values. 6406 6406 */ 6407 6407 return apply_filters( 'get_lastpostdate', _get_last_post_time( $timezone, 'date', $post_type ), $timezone ); … … 6422 6422 * Default 'server'. 6423 6423 * @param string $post_type Optional. The post type to check. Default 'any'. 6424 * @return string The timestamp in 'Y-m-d H:i:s' format .6424 * @return string The timestamp in 'Y-m-d H:i:s' format, or false on failure. 6425 6425 */ 6426 6426 function get_lastpostmodified( $timezone = 'server', $post_type = 'any' ) { … … 6453 6453 * @since 2.3.0 6454 6454 * 6455 * @param string $lastpostmodified The most recent time that a post was modified, in 'Y-m-d H:i:s' format. 6456 * @param string $timezone Location to use for getting the post modified date. 6457 * See get_lastpostdate() for accepted `$timezone` values. 6455 * @param string|false $lastpostmodified The most recent time that a post was modified, in 'Y-m-d H:i:s' format. 6456 * False on failure. 6457 * @param string $timezone Location to use for getting the post modified date. 6458 * See get_lastpostdate() for accepted `$timezone` values. 6458 6459 */ 6459 6460 return apply_filters( 'get_lastpostmodified', $lastpostmodified, $timezone ); … … 6473 6474 * @param string $field Post field to check. Accepts 'date' or 'modified'. 6474 6475 * @param string $post_type Optional. The post type to check. Default 'any'. 6475 * @return string|false The timestamp in 'Y-m-d H:i:s' format, or false on error.6476 * @return string|false The timestamp in 'Y-m-d H:i:s' format, or false on failure. 6476 6477 */ 6477 6478 function _get_last_post_time( $timezone, $field, $post_type = 'any' ) {
Note: See TracChangeset
for help on using the changeset viewer.