Make WordPress Core


Ignore:
Timestamp:
09/01/2020 12:41:19 AM (4 years ago)
Author:
SergeyBiryukov
Message:

Docs: Synchronize the description of the $format parameter in various date/time functions for posts and comments.

See #50768.

File:
1 edited

Legend:

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

    r48918 r48929  
    545545 * @since 4.4.0 Added the ability for `$comment_ID` to also accept a WP_Comment object.
    546546 *
    547  * @param string         $format     Optional. The format of the date. Default user's setting.
     547 * @param string         $format     Optional. PHP date format. Defaults to the 'date_format' option.
    548548 * @param int|WP_Comment $comment_ID WP_Comment or ID of the comment for which to get the date.
    549549 *                                   Default current comment.
     
    563563     *
    564564     * @param string|int $date    Formatted date string or Unix timestamp.
    565      * @param string     $format  The format of the date.
     565     * @param string     $format  PHP date format.
    566566     * @param WP_Comment $comment The comment object.
    567567     */
     
    575575 * @since 4.4.0 Added the ability for `$comment_ID` to also accept a WP_Comment object.
    576576 *
    577  * @param string         $format     Optional. The format of the date. Default user's settings.
     577 * @param string         $format     Optional. PHP date format. Defaults to the 'date_format' option.
    578578 * @param int|WP_Comment $comment_ID WP_Comment or ID of the comment for which to print the date.
    579579 *                                   Default current comment.
     
    10341034 * @since 1.5.0
    10351035 *
    1036  * @param string $format    Optional. The format of the time. Default user's settings.
     1036 * @param string $format    Optional. PHP date format. Defaults to the 'time_format' option.
    10371037 * @param bool   $gmt       Optional. Whether to use the GMT date. Default false.
    10381038 * @param bool   $translate Optional. Whether to translate the time (for use in feeds).
     
    10551055     *
    10561056     * @param string|int $date      The comment time, formatted as a date string or Unix timestamp.
    1057      * @param string     $format    Date format.
     1057     * @param string     $format    PHP date format.
    10581058     * @param bool       $gmt       Whether the GMT date is in use.
    10591059     * @param bool       $translate Whether the time is translated.
     
    10681068 * @since 0.71
    10691069 *
    1070  * @param string $format Optional. The format of the time. Default user's settings.
     1070 * @param string $format Optional. PHP date format. Defaults to the 'time_format' option.
    10711071 */
    10721072function comment_time( $format = '' ) {
Note: See TracChangeset for help on using the changeset viewer.