Making WordPress.org

Changeset 6847


Ignore:
Timestamp:
03/09/2018 12:52:52 AM (7 years ago)
Author:
iandunn
Message:

WP15: Return DateTime object like tggr_end_date expects.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wp15.wordpress.net/public_html/content/mu-plugins/miscellaneous.php

    r6579 r6847  
    1010
    1111namespace WP15\Updates;
     12use DateTime;
     13
    1214defined( 'WPINC' ) or die();
    1315
     
    2022 * avoid publishing those.
    2123 *
    22  * @param false|int $date
     24 * @param DateTime|null $date
    2325 *
    24  * @return false|int
     26 * @return DateTime
    2527 */
    2628function set_tagregator_cutoff_date( $date ) {
    2729    // A few weeks after the event ends, so that wrap-up posts, etc are included.
    28     return strtotime( 'June 15, 2018' );
     30    return new DateTime( 'June 15, 2018' );
    2931}
Note: See TracChangeset for help on using the changeset viewer.