Make WordPress Core

Changeset 6644


Ignore:
Timestamp:
01/23/2008 06:20:59 PM (17 years ago)
Author:
ryan
Message:

Pass remember arg. see #5405

Location:
trunk/wp-includes
Files:
3 edited

Legend:

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

    r6509 r6644  
    2626    unset($GLOBALS['wp_query']);
    2727    $GLOBALS['wp_query'] =& $GLOBALS['wp_the_query'];
     28    global $wp_query;
     29    if ( !empty($wp_query->post) ) {
     30        $GLOBALS['post'] = $wp_query->post;
     31        setup_postdata($wp_query->post);
     32    }
    2833}
    2934
  • trunk/wp-includes/user.php

    r6643 r6644  
    4949        return $user;
    5050
    51     wp_set_auth_cookie($user->ID);
     51    wp_set_auth_cookie($user->ID, $credentials['remember']);
    5252    do_action('wp_login', $credentials['user_login']);
    5353    return $user;
  • trunk/wp-includes/widgets.php

    r6560 r6644  
    875875        <?php echo $after_widget; ?>
    876876<?php
     877        wp_reset_query();  // Restore global post data stomped by the_post().
    877878    endif;
    878879    wp_cache_add('widget_recent_entries', ob_get_flush());
Note: See TracChangeset for help on using the changeset viewer.