Make WordPress Core

Ticket #26682: get_the_time_inline_docs.patch

File get_the_time_inline_docs.patch, 1.1 KB (added by ruud@…, 11 years ago)

get_the_time, get_post_time inline docs patch

  • htdocs/wp-includes/general-template.php

     
    15011501 *
    15021502 * @param string $d Optional Either 'G', 'U', or php date format defaults to the value specified in the time_format option.
    15031503 * @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.
    15051505 */
    15061506function get_the_time( $d = '', $post = null ) {
    15071507        $post = get_post($post);
     
    15221522 * @param bool $gmt Optional, default is false. Whether to return the gmt time.
    15231523 * @param int|object $post Optional post ID or object. Default is global $post object.
    15241524 * @param bool $translate Whether to translate the time string
    1525  * @return string
     1525 * @return string|int Formatted date string, or Unix timestamp.
    15261526 */
    15271527function get_post_time( $d = 'U', $gmt = false, $post = null, $translate = false ) { // returns timestamp
    15281528        $post = get_post($post);