Make WordPress Core

Ticket #45323: typo-in-the-docblocks.diff

File typo-in-the-docblocks.diff, 2.2 KB (added by behzod, 5 years ago)

patch

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

    diff --git src/wp-includes/general-template.php src/wp-includes/general-template.php
    index 434e3245a1..7f62f9911c 100644
    function the_time( $d = '' ) { 
    24252425 *                          was written. Either 'G', 'U', or php date format defaults
    24262426 *                          to the value specified in the time_format option. Default empty.
    24272427 * @param int|WP_Post $post WP_Post object or ID. Default is global $post object.
    2428  * @return string|int|false Formatted date string or Unix timestamp if `$id` is 'U' or 'G'. False on failure.
     2428 * @return string|int|false Formatted date string or Unix timestamp if `$d` is 'U' or 'G'. False on failure.
    24292429 */
    24302430function get_the_time( $d = '', $post = null ) {
    24312431        $post = get_post( $post );
    function get_the_time( $d = '', $post = null ) { 
    24642464 * @param bool        $gmt       Optional. Whether to retrieve the GMT time. Default false.
    24652465 * @param int|WP_Post $post      WP_Post object or ID. Default is global $post object.
    24662466 * @param bool        $translate Whether to translate the time string. Default false.
    2467  * @return string|int|false Formatted date string or Unix timestamp if `$id` is 'U' or 'G'. False on failure.
     2467 * @return string|int|false Formatted date string or Unix timestamp if `$d` is 'U' or 'G'. False on failure.
    24682468 */
    24692469function get_post_time( $d = 'U', $gmt = false, $post = null, $translate = false ) {
    24702470        $post = get_post( $post );
    function get_the_modified_time( $d = '', $post = null ) { 
    25642564 * @param bool        $gmt       Optional. Whether to retrieve the GMT time. Default false.
    25652565 * @param int|WP_Post $post      WP_Post object or ID. Default is global $post object.
    25662566 * @param bool        $translate Whether to translate the time string. Default false.
    2567  * @return string|int|false Formatted date string or Unix timestamp if `$id` is 'U' or 'G'. False on failure.
     2567 * @return string|int|false Formatted date string or Unix timestamp if `$d` is 'U' or 'G'. False on failure.
    25682568 */
    25692569function get_post_modified_time( $d = 'U', $gmt = false, $post = null, $translate = false ) {
    25702570        $post = get_post( $post );