function dm_redirect_admin() fails on admin-post.php
-
Hello
in function dm_redirect_admin() i can read this:
if ( strpos( $_SERVER['REQUEST_URI'], 'wp-admin/admin-ajax.php' ) !== false ) return;
but what about admin-post.php ?
Please replace the code with this:
if ( strpos( $_SERVER['REQUEST_URI'], 'wp-admin/admin-ajax.php' ) !== false || strpos( $_SERVER['REQUEST_URI'], 'wp-admin/admin-post.php' ) !== false ) return;
thank you
ps : seriously do it, i just hacked the plugin core in a client website! thanks ??
https://www.ads-software.com/plugins/wordpress-mu-domain-mapping/
- The topic ‘function dm_redirect_admin() fails on admin-post.php’ is closed to new replies.