Changeset 54552 for branches/4.1/src/wp-includes/functions.php
- Timestamp:
- 10/17/2022 05:53:02 PM (2 years ago)
- Location:
- branches/4.1
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.1
- Property svn:mergeinfo changed
/trunk merged: 54521-54523,54525,54527,54529-54530,54541
- Property svn:mergeinfo changed
-
branches/4.1/src/wp-includes/functions.php
r46501 r54552 2435 2435 } else { 2436 2436 $html = __( 'Are you sure you want to do this?' ); 2437 if ( wp_get_referer() ) 2438 $html .= "</p><p><a href='" . esc_url( remove_query_arg( 'updated', wp_get_referer() ) ) . "'>" . __( 'Please try again.' ) . "</a>"; 2437 if ( wp_get_referer() ) { 2438 $wp_http_referer = remove_query_arg( 'updated', wp_get_referer() ); 2439 $wp_http_referer = wp_validate_redirect( esc_url_raw( $wp_http_referer ) ); 2440 $html .= '</p><p>'; 2441 $html .= sprintf( 2442 '<a href="%s">%s</a>', 2443 esc_url( $wp_http_referer ), 2444 __( 'Please try again.' ) 2445 ); 2446 } 2439 2447 } 2440 2448
Note: See TracChangeset
for help on using the changeset viewer.