Changeset 1201365
- Timestamp:
- 07/18/2015 01:53:11 AM (11 years ago)
- Location:
- wp-admin-no-show/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (2 diffs)
-
wp-admin-no-show.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-admin-no-show/trunk/readme.txt
r1195229 r1201365 5 5 Requires at least: 3.1 6 6 Tested up to: 4.2.2 7 Stable tag: 1. 5.17 Stable tag: 1.6.0 8 8 License: MIT License 9 9 License URI: http://www.opensource.org/licenses/mit-license.php … … 39 39 40 40 == Changelog == 41 42 = 1.6.0 = 43 * Use admin_init hook for wp_admin_no_show_admin_redirect() to prevent temporary view of admin page on redirect. 44 * Added check for 'DOING_AJAX' when checking is_admin() on redirect to prevent conflicts with other plugins. 41 45 42 46 = 1.5.1 = -
wp-admin-no-show/trunk/wp-admin-no-show.php
r1195229 r1201365 4 4 Plugin URI: http://www.dougsparling.org 5 5 Description: Efectively blocks admin portion of site for selected user roles. Any attempt to manually navigate to wp-admin section of site and user will be redirected to selected site page. Hides admin bar. 6 Version: 1. 5.16 Version: 1.6.0 7 7 Author: Doug Sparling 8 8 Author URI: http://www.dougsparling.org … … 82 82 } 83 83 84 if( is_admin() ) {84 if( is_admin() && ! ( defined( 'DOING_AJAX' ) && DOING_AJAX ) ) { 85 85 if ( headers_sent() ) { 86 86 echo '<meta http-equiv="refresh" content="0;url=' . $redirect . '">'; … … 91 91 } 92 92 } 93 94 } 95 } 96 add_action( 'admin_head', 'wp_admin_no_show_admin_redirect', 0 ); 93 } 94 } 95 add_action( 'admin_init', 'wp_admin_no_show_admin_redirect', 0 ); 97 96 98 97 /**
Note: See TracChangeset
for help on using the changeset viewer.