Make WordPress Core


Ignore:
Timestamp:
04/14/2009 06:31:49 PM (16 years ago)
Author:
ryan
Message:

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

File:
1 edited

Legend:

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

    r10897 r10931  
    23182318        $html .= "</p><p><a href='" . remove_query_arg( 'updated', clean_url( wp_get_referer() ) ) . "'>" . __( 'Please try again.' ) . "</a>";
    23192319    elseif ( 'log-out' == $action )
    2320         $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' ) );
     2320        $html .= "</p><p>" . sprintf( __( "Do you really want to <a href='%s'>log out</a>?"), wp_logout_url() );
    23212321
    23222322    wp_die( $html, $title);
Note: See TracChangeset for help on using the changeset viewer.