WordPress.org

Make WordPress Core


Ignore:
Timestamp:
11/11/2010 04:22:18 PM (9 years ago)
Author:
ryan
Message:

Prevent stomping of global. Props prettyboymp. fixes #13945

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/functions.php

    r16300 r16303  
    13451345 */
    13461346function is_new_day() {
    1347     global $day, $previousday;
    1348     if ( $day != $previousday )
     1347    global $currentday, $previousday;
     1348    if ( $currentday != $previousday )
    13491349        return 1;
    13501350    else
Note: See TracChangeset for help on using the changeset viewer.