wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.
wp_get_original_referer › WordPress Function
Od2.0.4
Przestarzałyn/a
› wp_get_original_referer ( Brak parametrów )
| Powrót: |
|
| Zdefiniowane na: |
|
| Codex: |
Retrieves original referer that was posted, if it exists.
Źródło
function wp_get_original_referer() {
// Return early if called before wp_validate_redirect() is defined.
if ( ! function_exists( 'wp_validate_redirect' ) ) {
return false;
}
if ( ! empty( $_REQUEST['_wp_original_http_referer'] ) ) {
return wp_validate_redirect( wp_unslash( $_REQUEST['_wp_original_http_referer'] ), false );
}
return false;
}