Changeset 46977 for branches/5.3/src/wp-includes/post.php
- Timestamp:
- 12/17/2019 08:52:44 PM (6 years ago)
- Location:
- branches/5.3
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/wp-includes/post.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/5.3
- Property svn:mergeinfo changed
/trunk merged: 46973-46974
- Property svn:mergeinfo changed
-
branches/5.3/src/wp-includes/post.php
r46975 r46977 6387 6387 * Default 'server'. 6388 6388 * @param string $post_type Optional. The post type to check. Default 'any'. 6389 * @return string The date of the last post .6389 * @return string The date of the last post, or false on failure. 6390 6390 */ 6391 6391 function get_lastpostdate( $timezone = 'server', $post_type = 'any' ) { … … 6395 6395 * @since 2.3.0 6396 6396 * 6397 * @param string $date Date the last post was published.6398 * @param string $timezone Location to use for getting the post published date.6399 * See get_lastpostdate() for accepted `$timezone` values.6397 * @param string|false $date Date the last post was published. False on failure. 6398 * @param string $timezone Location to use for getting the post published date. 6399 * See get_lastpostdate() for accepted `$timezone` values. 6400 6400 */ 6401 6401 return apply_filters( 'get_lastpostdate', _get_last_post_time( $timezone, 'date', $post_type ), $timezone ); … … 6416 6416 * Default 'server'. 6417 6417 * @param string $post_type Optional. The post type to check. Default 'any'. 6418 * @return string The timestamp in 'Y-m-d H:i:s' format .6418 * @return string The timestamp in 'Y-m-d H:i:s' format, or false on failure. 6419 6419 */ 6420 6420 function get_lastpostmodified( $timezone = 'server', $post_type = 'any' ) { … … 6447 6447 * @since 2.3.0 6448 6448 * 6449 * @param string $lastpostmodified The most recent time that a post was modified, in 'Y-m-d H:i:s' format. 6450 * @param string $timezone Location to use for getting the post modified date. 6451 * See get_lastpostdate() for accepted `$timezone` values. 6449 * @param string|false $lastpostmodified The most recent time that a post was modified, in 'Y-m-d H:i:s' format. 6450 * False on failure. 6451 * @param string $timezone Location to use for getting the post modified date. 6452 * See get_lastpostdate() for accepted `$timezone` values. 6452 6453 */ 6453 6454 return apply_filters( 'get_lastpostmodified', $lastpostmodified, $timezone ); … … 6467 6468 * @param string $field Post field to check. Accepts 'date' or 'modified'. 6468 6469 * @param string $post_type Optional. The post type to check. Default 'any'. 6469 * @return string|false The timestamp in 'Y-m-d H:i:s' format, or false on error.6470 * @return string|false The timestamp in 'Y-m-d H:i:s' format, or false on failure. 6470 6471 */ 6471 6472 function _get_last_post_time( $timezone, $field, $post_type = 'any' ) {
Note: See TracChangeset
for help on using the changeset viewer.