Ticket #16909: 16909.3.patch
File 16909.3.patch, 635 bytes (added by , 13 years ago) |
---|
-
wp-includes/functions.php
### Eclipse Workspace Patch 1.0 #P wordpress-trunk
1961 1961 * @return string Referer field. 1962 1962 */ 1963 1963 function wp_referer_field( $echo = true ) { 1964 $ref = esc_attr( $_SERVER['REQUEST_URI'] ); 1964 $url = ( is_ssl() ? 'https://' : 'http://' ) . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; 1965 $ref = esc_attr( $url ); 1965 1966 $referer_field = '<input type="hidden" name="_wp_http_referer" value="'. $ref . '" />'; 1966 1967 1967 1968 if ( $echo )