Changeset 52088
- Timestamp:
- 11/09/2021 11:05:32 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/functions.php
r52066 r52088 3470 3470 */ 3471 3471 function wp_nonce_ays( $action ) { 3472 // Default title and response code. 3473 $title = __( 'Something went wrong.' ); 3474 $response_code = 403; 3475 3472 3476 if ( 'log-out' === $action ) { 3473 $ html= sprintf(3477 $title = sprintf( 3474 3478 /* translators: %s: Site title. */ 3475 3479 __( 'You are attempting to log out of %s' ), 3476 3480 get_bloginfo( 'name' ) 3477 3481 ); 3482 $html = $title; 3478 3483 $html .= '</p><p>'; 3479 3484 $redirect_to = isset( $_REQUEST['redirect_to'] ) ? $_REQUEST['redirect_to'] : ''; … … 3495 3500 } 3496 3501 3497 wp_die( $html, __( 'Something went wrong.' ), 403);3502 wp_die( $html, $title, $response_code ); 3498 3503 } 3499 3504
Note: See TracChangeset
for help on using the changeset viewer.