WordPress.org

Make WordPress Core

Ticket #20056: 20056.patch

File 20056.patch, 1.2 KB (added by Viper007Bond, 6 years ago)
  • wp-includes/functions.php

     
    1010/**
    1111 * Converts MySQL DATETIME field to user specified date format.
    1212 *
    13  * If $dateformatstring has 'G' value, then gmmktime() function will be used to
    14  * make the time. If $dateformatstring is set to 'U', then mktime() function
    15  * will be used to make the time.
     13 * The $translate parameter will only be used, if it is set to true and it is by
     14 * default and if the $wp_locale object has the month and weekday set.
    1615 *
    17  * The $translate will only be used, if it is set to true and it is by default
    18  * and if the $wp_locale object has the month and weekday set.
    19  *
    2016 * @since 0.71
    2117 *
    22  * @param string $dateformatstring Either 'G', 'U', or php date format.
     18 * @param string $dateformatstring Either 'G', 'U', or PHP date format.
    2319 * @param string $mysqlstring Time from mysql DATETIME field.
    2420 * @param bool $translate Optional. Default is true. Will switch format to locale.
    2521 * @return string Date formatted by $dateformatstring or locale (if available).