Changeset 47122 for trunk/src/wp-includes/vars.php
- Timestamp:
- 01/29/2020 12:43:23 AM (6 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/vars.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/vars.php
r45674 r47122 20 20 $is_apache, $is_IIS, $is_iis7, $is_nginx; 21 21 22 // On which page are we ?22 // On which page are we? 23 23 if ( is_admin() ) { 24 // wp-admin pages are checked more carefully 24 // wp-admin pages are checked more carefully. 25 25 if ( is_network_admin() ) { 26 26 preg_match( '#/wp-admin/network/?(.*?)$#i', $_SERVER['PHP_SELF'], $self_matches ); … … 39 39 $pagenow = strtolower( $self_matches[1] ); 40 40 if ( '.php' !== substr( $pagenow, -4, 4 ) ) { 41 $pagenow .= '.php'; // for Options +Multiviews: /wp-admin/themes/index.php (themes.php is queried)41 $pagenow .= '.php'; // For `Options +Multiviews`: /wp-admin/themes/index.php (themes.php is queried). 42 42 } 43 43 } … … 51 51 unset( $self_matches ); 52 52 53 // Simple browser detection 53 // Simple browser detection. 54 54 $is_lynx = false; 55 55 $is_gecko = false; … … 107 107 $is_IE = ( $is_macIE || $is_winIE ); 108 108 109 // Server detection 109 // Server detection. 110 110 111 111 /** … … 147 147 if ( empty( $_SERVER['HTTP_USER_AGENT'] ) ) { 148 148 $is_mobile = false; 149 } elseif ( strpos( $_SERVER['HTTP_USER_AGENT'], 'Mobile' ) !== false // many mobile devices (all iPhone, iPad, etc.)149 } elseif ( strpos( $_SERVER['HTTP_USER_AGENT'], 'Mobile' ) !== false // Many mobile devices (all iPhone, iPad, etc.) 150 150 || strpos( $_SERVER['HTTP_USER_AGENT'], 'Android' ) !== false 151 151 || strpos( $_SERVER['HTTP_USER_AGENT'], 'Silk/' ) !== false
Note: See TracChangeset
for help on using the changeset viewer.