Make WordPress Core

Ticket #31036: 31036.diff

File 31036.diff, 5.6 KB (added by boonebgorges, 9 years ago)
  • src/wp-includes/date.php

    diff --git src/wp-includes/date.php src/wp-includes/date.php
    index d2c8f69..616350d 100644
    class WP_Date_Query { 
    6565        /**
    6666         * Constructor.
    6767         *
     68         * Time-related parameters that normally require integer values ('year', 'month', 'week', 'dayofyear', 'day',
     69         * 'dayofweek', 'dayofweek_iso', 'hour', 'minute', 'second') accept arrays of integers for some values of
     70         * 'compare'. When 'compare' is 'IN' or 'NOT IN', arrays are accepted; when 'compare' is 'BETWEEN' or 'NOT
     71         * BETWEEN', arrays of two values are required.
     72         *
    6873         * @since 3.7.0
    6974         * @since 4.0.0 The $inclusive logic was updated to include all times within the date range.
    7075         * @since 4.1.0 Introduced 'dayofweek_iso' time type parameter.
    class WP_Date_Query { 
    109114         *                                           'post_modified', 'post_modified_gmt', 'comment_date', 'comment_date_gmt'.
    110115         *             @type string       $compare       Optional. The comparison operator. Default '='.
    111116         *                                               Accepts '=', '!=', '>', '>=', '<', '<=', 'IN', 'NOT IN',
    112          *                                               'BETWEEN', 'NOT BETWEEN'.
     117         *                                               'BETWEEN', 'NOT BETWEEN'. 'IN', 'NOT IN', 'BETWEEN', and 'NOT BETWEEN'
     118         *                                               comparisons support arrays in some time-related parameters.
    113119         *             @type bool         $inclusive     Optional. Include results from dates specified in 'before' or
    114120         *                                               'after'. Default false.
    115          *             @type int          $year          Optional. The four-digit year number. Default empty. Accepts
    116          *                                               any four-digit year.
    117          *             @type int          $month         Optional. The two-digit month number. Default empty.
    118          *                                               Accepts numbers 1-12.
    119          *             @type int          $week          Optional. The week number of the year. Default empty.
    120          *                                               Accepts numbers 0-53.
    121          *             @type int          $dayofyear     Optional. The day number of the year. Default empty.
    122          *                                               Accepts numbers 1-366.
    123          *             @type int          $day           Optional. The day of the month. Default empty.
    124          *                                               Accepts numbers 1-31.
    125          *             @type int          $dayofweek     Optional. The day number of the week. Default empty.
    126          *                                               Accepts numbers 1-7 (1 is Sunday).
    127          *             @type int          $dayofweek_iso Optional. The day number of the week (ISO). Accepts numbers 1-7
    128          *                                               (1 is Monday). Default empty.
    129          *             @type int          $hour          Optional. The hour of the day. Default empty. Accepts numbers 0-23.
    130          *             @type int          $minute        Optional. The minute of the hour. Default empty. Accepts
    131          *                                               numbers 0-60.
    132          *             @type int          $second        Optional. The second of the minute. Default empty.
    133          *                                               Accepts numbers 0-60.
     121         *             @type int|array    $year          Optional. The four-digit year number. Default empty.
     122         *                                               Accepts any four-digit year or an array of years if $compare supports it.
     123         *             @type int|array    $month         Optional. The two-digit month number. Default empty.
     124         *                                               Accepts numbers 1-12 or an array of numbers if $compare supports it.
     125         *             @type int|array    $week          Optional. The week number of the year. Default empty.
     126         *                                               Accepts numbers 0-53 or an array of numbers if $compare supports it.
     127         *             @type int|array    $dayofyear     Optional. The day number of the year. Default empty.
     128         *                                               Accepts numbers 1-366 or an array of numbers if $compare supports it.
     129         *             @type int|array    $day           Optional. The day of the month. Default empty.
     130         *                                               Accepts numbers 1-31 or an array of numbers if $compare supports it.
     131         *             @type int|array    $dayofweek     Optional. The day number of the week. Default empty.
     132         *                                               Accepts numbers 1-7 (1 is Sunday) or an array of numbers if $compare supports it.
     133         *             @type int|array    $dayofweek_iso Optional. The day number of the week (ISO). Default empty.
     134         *                                               Accepts numbers 1-7 (1 is Monday) or an array of numbers if $compare supports it.
     135         *             @type int|array    $hour          Optional. The hour of the day. Default empty.
     136         *                                               Accepts numbers 0-23 or an array of numbers if $compare supports it.
     137         *             @type int|array    $minute        Optional. The minute of the hour. Default empty.
     138         *                                               Accepts numbers 0-60 or an array of numbers if $compare supports it.
     139         *             @type int|array    $second        Optional. The second of the minute. Default empty.
     140         *                                               Accepts numbers 0-60 or an array of numbers if $compare supports it.
    134141         *         }
    135142         *     }
    136143         * }