Commit dc1ac425 authored by dev's avatar dev
Browse files

User wp_safe_redirect for... safety

parent 40dfac6a
......@@ -123,8 +123,8 @@ class Contributor {
$admin_pages = array(
'tools.php',
);
if ( in_array( $last, $admin_pages ) ) {
wp_redirect( admin_url() );
if ( in_array( $last, $admin_pages, true ) ) {
wp_safe_redirect( admin_url() );
exit;
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment