Changeset 45398 for trunk/src/wp-includes/general-template.php
- Timestamp:
- 05/24/2019 01:32:19 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/general-template.php
r45380 r45398 353 353 */ 354 354 function wp_logout_url( $redirect = '' ) { 355 $args = array( 'action' => 'logout');355 $args = array(); 356 356 if ( ! empty( $redirect ) ) { 357 357 $args['redirect_to'] = urlencode( $redirect ); 358 358 } 359 359 360 $logout_url = add_query_arg( $args, site_url( 'wp-login.php ', 'login' ) );360 $logout_url = add_query_arg( $args, site_url( 'wp-login.php?action=logout', 'login' ) ); 361 361 $logout_url = wp_nonce_url( $logout_url, 'log-out' ); 362 362 … … 559 559 */ 560 560 function wp_lostpassword_url( $redirect = '' ) { 561 $args = array( 'action' => 'lostpassword');561 $args = array(); 562 562 if ( ! empty( $redirect ) ) { 563 563 $args['redirect_to'] = urlencode( $redirect ); 564 564 } 565 565 566 $lostpassword_url = add_query_arg( $args, network_site_url( 'wp-login.php ', 'login' ) );566 $lostpassword_url = add_query_arg( $args, network_site_url( 'wp-login.php?action=lostpassword', 'login' ) ); 567 567 568 568 /**
Note: See TracChangeset
for help on using the changeset viewer.