Index: wp-includes/functions.php =================================================================== --- wp-includes/functions.php (revision 29625) +++ wp-includes/functions.php (working copy) @@ -2314,8 +2314,13 @@ * @param string $action The nonce action. */ function wp_nonce_ays( $action ) { - $title = __( 'WordPress Failure Notice' ); + $title = __( 'WordPress Notice' ); if ( 'log-out' == $action ) { + if ( !is_user_logged_in() ) { + $login_redirect = esc_url( wp_login_url() ) . '?loggedout=true'; + wp_redirect( $login_redirect ); + exit; + } $html = sprintf( __( 'You are attempting to log out of %s' ), get_bloginfo( 'name' ) ) . '

'; $redirect_to = isset( $_REQUEST['redirect_to'] ) ? $_REQUEST['redirect_to'] : ''; $html .= sprintf( __( "Do you really want to log out?"), wp_logout_url( $redirect_to ) );