WordPress.org

Make WordPress Core

Ticket #13493: deprecate-is-new-day.13493.diff

File deprecate-is-new-day.13493.diff, 1.3 KB (added by filosofo, 8 years ago)
  • wp-includes/functions.php

     
    13111311}
    13121312
    13131313/**
    1314  * Whether today is a new day.
    1315  *
    1316  * @since 0.71
    1317  * @uses $day Today
    1318  * @uses $previousday Previous day
    1319  *
    1320  * @return int 1 when new day, 0 if not a new day.
    1321  */
    1322 function is_new_day() {
    1323         global $day, $previousday;
    1324         if ( $day != $previousday )
    1325                 return 1;
    1326         else
    1327                 return 0;
    1328 }
    1329 
    1330 /**
    13311314 * Build URL query based on an associative and, or indexed array.
    13321315 *
    13331316 * This is a convenient function for easily building url queries. It sets the
  • wp-includes/deprecated.php

     
    5050}
    5151
    5252/**
     53 * Whether today is a new day.
     54 *
     55 * @since 0.71
     56 * @deprecated 3.1
     57 * @uses $day Today
     58 * @uses $previousday Previous day
     59 *
     60 * @return int 1 when new day, 0 if not a new day.
     61 */
     62function is_new_day() {
     63        _deprecated_function( __FUNCTION__, '3.1' );
     64        global $day, $previousday;
     65        if ( $day != $previousday )
     66                return 1;
     67        else
     68                return 0;
     69}
     70
     71/**
    5372 * Sets up the WordPress Loop.
    5473 *
    5574 * @since 1.0.1