mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-03-30 18:24:31 +00:00
Notice fixing for wp-includes. See #5607 props filosofo.
git-svn-id: https://develop.svn.wordpress.org/trunk@6592 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -990,9 +990,10 @@ function wp_original_referer_field() {
|
||||
|
||||
|
||||
function wp_get_referer() {
|
||||
foreach ( array( $_REQUEST['_wp_http_referer'], $_SERVER['HTTP_REFERER'] ) as $ref )
|
||||
if ( !empty( $ref ) )
|
||||
return $ref;
|
||||
if ( ! empty( $_REQUEST['_wp_http_referer'] ) )
|
||||
return $_REQUEST['_wp_http_referer'];
|
||||
else if ( ! empty( $_SERVER['HTTP_REFERER'] ) )
|
||||
return $_SERVER['HTTP_REFERER'];
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user