Ticket #13493: deprecate-is-new-day.13493.diff
| File deprecate-is-new-day.13493.diff, 1.3 KB (added by filosofo, 3 years ago) |
|---|
-
wp-includes/functions.php
1311 1311 } 1312 1312 1313 1313 /** 1314 * Whether today is a new day.1315 *1316 * @since 0.711317 * @uses $day Today1318 * @uses $previousday Previous day1319 *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 else1327 return 0;1328 }1329 1330 /**1331 1314 * Build URL query based on an associative and, or indexed array. 1332 1315 * 1333 1316 * This is a convenient function for easily building url queries. It sets the -
wp-includes/deprecated.php
50 50 } 51 51 52 52 /** 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 */ 62 function 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 /** 53 72 * Sets up the WordPress Loop. 54 73 * 55 74 * @since 1.0.1
