Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function safe_network_redirect( $path = '' ) {
- if ( is_multisite() && ! is_network_admin() && !empty($path) && is_string($path) && strpos($path, '..') === false )
- wp_redirect( network_admin_url( $path ) );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement