Changeset 54449 for trunk/src/wp-includes/functions.php
- Timestamp:
- 10/10/2022 06:57:44 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/functions.php
r54309 r54449 1900 1900 */ 1901 1901 function wp_referer_field( $echo = true ) { 1902 $referer_field = '<input type="hidden" name="_wp_http_referer" value="' . esc_attr( wp_unslash( $_SERVER['REQUEST_URI'] ) ) . '" />'; 1902 $request_url = remove_query_arg( '_wp_http_referer' ); 1903 $referer_field = '<input type="hidden" name="_wp_http_referer" value="' . esc_url( $request_url ) . '" />'; 1903 1904 1904 1905 if ( $echo ) {
Note: See TracChangeset
for help on using the changeset viewer.