Updates to wp_login_url() and wp_logout_url(). Use them in more places. Props wnorris. fixes #9536

git-svn-id: https://develop.svn.wordpress.org/trunk@10931 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2009-04-14 18:31:49 +00:00
parent 077e5b20e9
commit 2eae08c088
6 changed files with 23 additions and 13 deletions

View File

@@ -2317,7 +2317,7 @@ function wp_nonce_ays( $action ) {
if ( wp_get_referer() )
$html .= "</p><p><a href='" . remove_query_arg( 'updated', clean_url( wp_get_referer() ) ) . "'>" . __( 'Please try again.' ) . "</a>";
elseif ( 'log-out' == $action )
$html .= "</p><p>" . sprintf( __( "Do you really want to <a href='%s'>log out</a>?"), wp_nonce_url( site_url('wp-login.php?action=logout', 'login'), 'log-out' ) );
$html .= "</p><p>" . sprintf( __( "Do you really want to <a href='%s'>log out</a>?"), wp_logout_url() );
wp_die( $html, $title);
}