Changeset 30287
- Timestamp:
- 11/08/2014 09:07:46 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post.php
r30284 r30287 5328 5328 5329 5329 /** 5330 * Retrieve last post modified date depending on timezone.5330 * Get the timestamp of the last time any post was modified. 5331 5331 * 5332 5332 * The server timezone is the default and is the difference between GMT and … … 5336 5336 * @since 1.2.0 5337 5337 * 5338 * @param string $timezone The location to get the time. Accepts 'gmt', 'blog', or 'server'. 5338 * @param string $timezone Optional. The timezone for the timestamp. Uses the server's internal timezone. 5339 * Accepts 'server', 'blog', 'gmt'. or 'server'. 'server' uses the server's 5340 * internal timezone. 'blog' uses the `post_modified` field, which proxies 5341 * to the timezone set for the site. 'gmt' uses the `post_modified_gmt` field. 5339 5342 * Default 'server'. 5340 * @return string The date the post was last modified.5343 * @return string The timestamp. 5341 5344 */ 5342 5345 function get_lastpostmodified( $timezone = 'server' ) { … … 5354 5357 * @param string $lastpostmodified Date the last post was modified. 5355 5358 * @param string $timezone Location to use for getting the post modified date. 5359 * See {@see get_lastpostmodified()} for accepted `$timezone` values. 5356 5360 */ 5357 5361 return apply_filters( 'get_lastpostmodified', $lastpostmodified, $timezone ); … … 5359 5363 5360 5364 /** 5361 * Retrieve latest post date data based on timezone. 5362 * 5365 * Get the timestamp of the last time any post was modified or published. 5366 * 5367 * @since 3.1.0 5363 5368 * @access private 5364 * @since 3.1.05365 * 5366 * @param string $timezone The location to get the time. Accepts 'gmt', 'blog', or 'server'.5367 * @param string $field Field to check. Can be'date' or 'modified'.5368 * @return string The date.5369 * 5370 * @param string $timezone The timezone for the timestamp. See {@see get_lastpostmodified()} 5371 * for information on accepted values. 5372 * @param string $field Post field to check. Accepts 'date' or 'modified'. 5373 * @return string The timestamp. 5369 5374 */ 5370 5375 function _get_last_post_time( $timezone, $field ) {
Note: See TracChangeset
for help on using the changeset viewer.