From aee733684b38828530e61c4b681a9a243ba0e56e Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Wed, 16 Sep 2015 15:29:39 +0000 Subject: [PATCH] Docs: Synchronize the `$timezone` parameter description between `get_lastpostdate()`, `get_lastpostmodified()`, and `_get_last_post_time()`. See #17455. Built from https://develop.svn.wordpress.org/trunk@34240 git-svn-id: http://core.svn.wordpress.org/trunk@34204 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/post-functions.php | 21 +++++++++++---------- wp-includes/version.php | 2 +- 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/wp-includes/post-functions.php b/wp-includes/post-functions.php index 2d9f90960c..f82110417d 100644 --- a/wp-includes/post-functions.php +++ b/wp-includes/post-functions.php @@ -5232,8 +5232,11 @@ function get_posts_by_author_sql( $post_type, $full = true, $post_author = null, * @since 0.71 * @since 4.4.0 The `$post_type` argument was added. * - * @param string $timezone Optional. The location to get the time. Accepts 'gmt', 'blog', - * or 'server'. Default 'server'. + * @param string $timezone Optional. The timezone for the timestamp. Accepts 'server', 'blog', or 'gmt'. + * 'server' uses the server's internal timezone. + * 'blog' uses the `post_modified` field, which proxies to the timezone set for the site. + * 'gmt' uses the `post_modified_gmt` field. + * Default 'server'. * @param string $post_type Optional. The post type to check. Default 'any'. * @return string The date of the last post. */ @@ -5243,9 +5246,9 @@ function get_lastpostdate( $timezone = 'server', $post_type = 'any' ) { * * @since 2.3.0 * - * @param string $date Date the last post was published. Likely values are 'gmt', - * 'blog', or 'server'. + * @param string $date Date the last post was published. * @param string $timezone Location to use for getting the post published date. + * See {@see get_lastpostdate()} for accepted `$timezone` values. */ return apply_filters( 'get_lastpostdate', _get_last_post_time( $timezone, 'date', $post_type ), $timezone ); } @@ -5260,10 +5263,8 @@ function get_lastpostdate( $timezone = 'server', $post_type = 'any' ) { * @since 1.2.0 * @since 4.4.0 The `$post_type` argument was added. * - * @param string $timezone Optional. The timezone for the timestamp. Uses the server's internal timezone. - * Accepts 'server', 'blog', 'gmt'. or 'server'. 'server' uses the server's - * internal timezone. 'blog' uses the `post_modified` field, which proxies - * to the timezone set for the site. 'gmt' uses the `post_modified_gmt` field. + * @param string $timezone Optional. The timezone for the timestamp. See {@see get_lastpostdate()} + * for information on accepted values. * Default 'server'. * @param string $post_type Optional. The post type to check. Default 'any'. * @return string The timestamp. @@ -5283,7 +5284,7 @@ function get_lastpostmodified( $timezone = 'server', $post_type = 'any' ) { * * @param string $lastpostmodified Date the last post was modified. * @param string $timezone Location to use for getting the post modified date. - * See {@see get_lastpostmodified()} for accepted `$timezone` values. + * See {@see get_lastpostdate()} for accepted `$timezone` values. */ return apply_filters( 'get_lastpostmodified', $lastpostmodified, $timezone ); } @@ -5297,7 +5298,7 @@ function get_lastpostmodified( $timezone = 'server', $post_type = 'any' ) { * * @global wpdb $wpdb * - * @param string $timezone The timezone for the timestamp. See {@see get_lastpostmodified()} + * @param string $timezone The timezone for the timestamp. See {@see get_lastpostdate()} * for information on accepted values. * @param string $field Post field to check. Accepts 'date' or 'modified'. * @param string $post_type Optional. The post type to check. Default 'any'. diff --git a/wp-includes/version.php b/wp-includes/version.php index a3dfade96f..b5b3bb0644 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.4-alpha-34239'; +$wp_version = '4.4-alpha-34240'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.