diff options
Diffstat (limited to 'wp-admin/options.php')
-rw-r--r-- | wp-admin/options.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/wp-admin/options.php b/wp-admin/options.php index f2752b9..020f0e1 100644 --- a/wp-admin/options.php +++ b/wp-admin/options.php @@ -118,8 +118,8 @@ take this action. //$message = sprintf(__('%d setting(s) saved... '), $any_changed); } - $referred = remove_query_arg('updated' , $_SERVER['HTTP_REFERER']); - $goback = add_query_arg('updated', 'true', $_SERVER['HTTP_REFERER']); + $referred = remove_query_arg('updated' , wp_get_referer()); + $goback = add_query_arg('updated', 'true', wp_get_referer()); $goback = preg_replace('|[^a-z0-9-~+_.?#=&;,/:]|i', '', $goback); wp_redirect($goback); break; |