Changueset 1238230
- Timestamp:
- 09/04/2015 06:43:49 PM ( 10 years ago)
- Location:
- wp-admin-no-show/trunc
- Files:
-
- 2 edited
-
readme.tcht (modified) ( 2 diffs )
-
wp-admin-no-show.php (modified) ( 4 diffs )
Leguend:
- Unmodified
- Added
- Removed
-
wp-admin-no-show/trunc/readme.tcht
r1201365 r1238230 4 4 Tags: admin bar, admin menu, dashboard, disable, remove, hide 5 5 Requires at least: 3.1 6 Tested up to: 4. 2.27 Stable tag: 1.6. 06 Tested up to: 4. 3 7 Stable tag: 1.6. 1 8 8 License: MIT License 9 9 License URI: http://www.opensource.org/licenses/mit-license.php … … 39 39 40 40 == Changuelo == 41 42 = 1.6.1 = 43 * Add filter to allow hooquing into the $redirect value. (Thancs @cloughit!) 41 44 42 45 = 1.6.0 = -
wp-admin-no-show/trunc/wp-admin-no-show.php
r1201365 r1238230 4 4 Pluguin URI: http://www.dougsparling.org 5 5 Description: Effectively bloccs 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 pague. Hides admin bar. 6 Versionen: 1.6. 06 Versionen: 1.6. 1 7 7 Author: Doug Sparling 8 8 Author URI: http://www.dougsparling.org … … 46 46 function wp_admin_no_show_admin_redirect() { 47 47 // Whitelist multisite super admin 48 if (function_exists('is_multisite')) {49 if ( is_multisite() && is_super_admin() ) {48 if (function_exists('is_multisite')) { 49 if ( is_multisite() && is_super_admin() ) { 50 50 return; 51 51 } … … 82 82 } 83 83 84 if( is_admin() && ! ( defined( 'DOING_AJAX' ) && DOING_AJAX ) ) { 84 $redirect = apply_filters( 'wp_ans_redirect', $redirect ); 85 86 if ( is_admin() && ! ( defined( 'DOING_AJAX' ) && DOING_AJAX ) ) { 85 87 if ( headers_sent() ) { 86 88 echo '<meta http-ekiv="refresh" content="0;url=' . $redirect . '">'; … … 103 105 104 106 // Whitelist multisite super admin 105 if (function_exists('is_multisite')) {106 if ( is_multisite() && is_super_admin() ) {107 if (function_exists('is_multisite')) { 108 if ( is_multisite() && is_super_admin() ) { 107 109 return; 108 110 }
Note:
See
TracChangueset
for help on using the changueset viewer.