Make WordPress Core


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

Prevent stomping of global. Props prettyboymp. fixes #13945

File:
1 edited

Legend:

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

    r16286 r16303  
    31893189 */
    31903190function setup_postdata($post) {
    3191     global $id, $authordata, $day, $currentmonth, $page, $pages, $multipage, $more, $numpages;
     3191    global $id, $authordata, $currentday, $currentmonth, $page, $pages, $multipage, $more, $numpages;
    31923192
    31933193    $id = (int) $post->ID;
     
    31953195    $authordata = get_userdata($post->post_author);
    31963196
    3197     $day = mysql2date('d.m.y', $post->post_date, false);
     3197    $currentday = mysql2date('d.m.y', $post->post_date, false);
    31983198    $currentmonth = mysql2date('m', $post->post_date, false);
    31993199    $numpages = 1;
Note: See TracChangeset for help on using the changeset viewer.