Make WordPress Core


Ignore:
Timestamp:
11/30/2014 11:23:37 PM (9 years ago)
Author:
wonderboymusic
Message:

Improve various @param docs.

See #30224.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/general-template.php

    r30656 r30674  
    18591859 * @param  string      $d    Optional. PHP date format defaults to the date_format option if not specified.
    18601860 * @param  int|WP_Post $post Optional. Post ID or WP_Post object. Default current post.
    1861  * @return string|bool Date the current post was written. False on failure.
     1861 * @return false|string Date the current post was written. False on failure.
    18621862 */
    18631863function get_the_date( $d = '', $post = null ) {
     
    19771977 *                          to the value specified in the time_format option. Default empty.
    19781978 * @param int|WP_Post $post WP_Post object or ID. Default is global $post object.
    1979  * @return string|int|bool Formatted date string or Unix timestamp. False on failure.
     1979 * @return false|string Formatted date string or Unix timestamp. False on failure.
    19801980 */
    19811981function get_the_time( $d = '', $post = null ) {
     
    20152015 * @param int|WP_Post $post      WP_Post object or ID. Default is global $post object.
    20162016 * @param bool        $translate Whether to translate the time string. Default false.
    2017  * @return string|int|bool Formatted date string or Unix timestamp. False on failure.
     2017 * @return false|string Formatted date string or Unix timestamp. False on failure.
    20182018 */
    20192019function get_post_time( $d = 'U', $gmt = false, $post = null, $translate = false ) {
     
    21022102 * @param int|WP_Post $post      WP_Post object or ID. Default is global $post object.
    21032103 * @param bool        $translate Whether to translate the time string. Default false.
    2104  * @return string|int|bool Formatted date string or Unix timestamp. False on failure.
     2104 * @return false|string Formatted date string or Unix timestamp. False on failure.
    21052105 */
    21062106function get_post_modified_time( $d = 'U', $gmt = false, $post = null, $translate = false ) {
Note: See TracChangeset for help on using the changeset viewer.