Make WordPress Core

Ticket #26185: 26185.wp_checkdate.diff

File 26185.wp_checkdate.diff, 758 bytes (added by morganestes, 11 years ago)

Added parameter and return tags to wp_checkdate.

  • wp-includes/functions.php

     
    42364236}
    42374237
    42384238/**
    4239  * Test if the supplied date is valid for the Gregorian calendar
     4239 * Test if the supplied date is valid for the Gregorian calendar.
    42404240 *
    42414241 * @since 3.5.0
     4242 * @see checkdate()
    42424243 *
    4243  * @return bool true|false
     4244 * @param  int    $month       Month number.
     4245 * @param  int    $day         Day number.
     4246 * @param  int    $year        Year number.
     4247 * @param  string $source_date The date to filter.
     4248 * @return bool   True if valid date, false if not valid date.
    42444249 */
    42454250function wp_checkdate( $month, $day, $year, $source_date ) {
    42464251        /**