Pass remember arg. see #5405
git-svn-id: http://svn.automattic.com/wordpress/trunk@6644 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
6afab28342
commit
7eb704b71b
|
@ -25,6 +25,11 @@ function &query_posts($query) {
|
|||
function wp_reset_query() {
|
||||
unset($GLOBALS['wp_query']);
|
||||
$GLOBALS['wp_query'] =& $GLOBALS['wp_the_query'];
|
||||
global $wp_query;
|
||||
if ( !empty($wp_query->post) ) {
|
||||
$GLOBALS['post'] = $wp_query->post;
|
||||
setup_postdata($wp_query->post);
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
@ -48,7 +48,7 @@ function wp_signon( $credentials = '' ) {
|
|||
if ( is_wp_error($user) )
|
||||
return $user;
|
||||
|
||||
wp_set_auth_cookie($user->ID);
|
||||
wp_set_auth_cookie($user->ID, $credentials['remember']);
|
||||
do_action('wp_login', $credentials['user_login']);
|
||||
return $user;
|
||||
}
|
||||
|
|
|
@ -874,6 +874,7 @@ function wp_widget_recent_entries($args) {
|
|||
</ul>
|
||||
<?php echo $after_widget; ?>
|
||||
<?php
|
||||
wp_reset_query(); // Restore global post data stomped by the_post().
|
||||
endif;
|
||||
wp_cache_add('widget_recent_entries', ob_get_flush());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue