Make WordPress Core

Ticket #26682: 26682.diff

File 26682.diff, 2.2 KB (added by DrewAPicture, 12 years ago)

Other phpdoc fixes

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

     
    14991499 *
    15001500 * @since 1.5.0
    15011501 *
    1502  * @param string $d Optional Either 'G', 'U', or php date format defaults to the value specified in the time_format option.
    1503  * @param int|object $post Optional post ID or object. Default is global $post object.
    1504  * @return string
     1502 * @param string      $d    Optional. Format to use for retrieving the time the post
     1503 *                          was written. Either 'G', 'U', or php date format defaults
     1504 *                          to the value specified in the time_format option. Default empty.
     1505 * @param int|WP_Post $post Optional. WP_Post object or ID. Default is global
     1506 *                          $post object.
     1507 * @return string|int Formatted date string, or Unix timestamp.
    15051508 */
    15061509function get_the_time( $d = '', $post = null ) {
    15071510        $post = get_post($post);
     
    15181521 *
    15191522 * @since 2.0.0
    15201523 *
    1521  * @param string $d Optional Either 'G', 'U', or php date format.
    1522  * @param bool $gmt Optional, default is false. Whether to return the gmt time.
    1523  * @param int|object $post Optional post ID or object. Default is global $post object.
    1524  * @param bool $translate Whether to translate the time string
    1525  * @return string
     1524 * @param string      $d         Optional. Format to use for retrieving the time the post
     1525 *                               was written. Either 'G', 'U', or php date format. Default 'U'.
     1526 * @param bool        $gmt       Optional. Whether to retrieve the GMT time.
     1527 *                               Default false.
     1528 * @param int|WP_Post $post      Optional. WP_Post object or ID. Default is global
     1529 *                               $post object.
     1530 * @param bool        $translate Whether to translate the time string. Default false.
     1531 * @return string|int Formatted date string, or Unix timestamp.
    15261532 */
    1527 function get_post_time( $d = 'U', $gmt = false, $post = null, $translate = false ) { // returns timestamp
     1533function get_post_time( $d = 'U', $gmt = false, $post = null, $translate = false ) {
    15281534        $post = get_post($post);
    15291535
    15301536        if ( $gmt )