Ticket #20582: hide-if-no-customize.php
File hide-if-no-customize.php, 416 bytes (added by , 13 years ago) |
---|
Line | |
---|---|
1 | <?php |
2 | |
3 | function hide_if_no_customize() { |
4 | if ( $GLOBALS['is_IE'] && is_multisite() && |
5 | preg_match( '/MSIE (\d+)\./', $_SERVER['HTTP_USER_AGENT'], $matches ) && $matches[1] < 10 ) { |
6 | |
7 | $home = preg_replace( '|^.+://|', '', get_home_url( get_current_blog_id() ) ); |
8 | $adminurl = preg_replace( '|^.+://|', '', admin_url() ); |
9 | |
10 | if ( stripos( $adminurl, $home ) !== 0 ) { |
11 | // domain mismatch |
12 | } |
13 | } |
14 | } |
15 |