Ticket #26682: get_the_time_inline_docs.patch
File get_the_time_inline_docs.patch, 1.1 KB (added by , 11 years ago) |
---|
-
htdocs/wp-includes/general-template.php
1501 1501 * 1502 1502 * @param string $d Optional Either 'G', 'U', or php date format defaults to the value specified in the time_format option. 1503 1503 * @param int|object $post Optional post ID or object. Default is global $post object. 1504 * @return string 1504 * @return string|int Formatted date string, or Unix timestamp. 1505 1505 */ 1506 1506 function get_the_time( $d = '', $post = null ) { 1507 1507 $post = get_post($post); … … 1522 1522 * @param bool $gmt Optional, default is false. Whether to return the gmt time. 1523 1523 * @param int|object $post Optional post ID or object. Default is global $post object. 1524 1524 * @param bool $translate Whether to translate the time string 1525 * @return string 1525 * @return string|int Formatted date string, or Unix timestamp. 1526 1526 */ 1527 1527 function get_post_time( $d = 'U', $gmt = false, $post = null, $translate = false ) { // returns timestamp 1528 1528 $post = get_post($post);