Changeset 38468
- Timestamp:
- 08/31/2016 03:21:04 PM (8 years ago)
- Location:
- trunk/src
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/edit-form-advanced.php
r38467 r38468 31 31 */ 32 32 if ( post_type_supports( $post_type, 'editor' ) && ! wp_is_mobile() && 33 ! ( wp_is_IE()&& preg_match( '/MSIE [5678]/', $_SERVER['HTTP_USER_AGENT'] ) ) &&33 ! ( $is_IE && preg_match( '/MSIE [5678]/', $_SERVER['HTTP_USER_AGENT'] ) ) && 34 34 apply_filters( 'wp_editor_expand', true, $post_type ) ) { 35 35 -
trunk/src/wp-admin/includes/class-wp-press-this.php
r38467 r38468 1188 1188 * 1189 1189 * @global WP_Locale $wp_locale 1190 * @global bool $is_IE 1190 1191 */ 1191 1192 public function html() { … … 1227 1228 add_filter( 'mce_css', array( $this, 'add_editor_style' ) ); 1228 1229 1229 if ( wp_is_IE() ) {1230 if ( ! empty( $GLOBALS['is_IE'] ) ) { 1230 1231 @header( 'X-UA-Compatible: IE=edge' ); 1231 1232 } -
trunk/src/wp-admin/includes/media.php
r38467 r38468 1784 1784 * @global string $type 1785 1785 * @global string $tab 1786 * @global bool $is_IE 1786 1787 * @global bool $is_opera 1787 1788 * … … 1789 1790 */ 1790 1791 function media_upload_form( $errors = null ) { 1791 global $type, $tab, $is_ opera;1792 global $type, $tab, $is_IE, $is_opera; 1792 1793 1793 1794 if ( ! _device_can_upload() ) { -
trunk/src/wp-admin/includes/template.php
r38467 r38468 1946 1946 } 1947 1947 1948 /** 1949 * 1950 * @global bool $is_IE 1951 */ 1948 1952 function _wp_admin_html_begin() { 1953 global $is_IE; 1954 1949 1955 $admin_html_class = ( is_admin_bar_showing() ) ? 'wp-toolbar' : ''; 1950 1956 1951 if ( wp_is_IE() ) {1957 if ( $is_IE ) 1952 1958 @header('X-UA-Compatible: IE=edge'); 1953 }1954 1959 1955 1960 ?> -
trunk/src/wp-includes/class-wp-admin-bar.php
r38467 r38468 392 392 393 393 /** 394 * 395 * @global bool $is_IE 394 396 * @param object $root 395 397 */ 396 398 final protected function _render( $root ) { 399 global $is_IE; 400 397 401 // Add browser classes. 398 402 // We have to do this here since admin bar shows on the front end. 399 403 $class = 'nojq nojs'; 400 if ( wp_is_IE()) {401 if ( strpos( $_SERVER['HTTP_USER_AGENT'], 'MSIE 7' ) ) {404 if ( $is_IE ) { 405 if ( strpos( $_SERVER['HTTP_USER_AGENT'], 'MSIE 7' ) ) 402 406 $class .= ' ie7'; 403 } elseif ( strpos( $_SERVER['HTTP_USER_AGENT'], 'MSIE 8' ) ) {407 elseif ( strpos( $_SERVER['HTTP_USER_AGENT'], 'MSIE 8' ) ) 404 408 $class .= ' ie8'; 405 } elseif ( strpos( $_SERVER['HTTP_USER_AGENT'], 'MSIE 9' ) ) {409 elseif ( strpos( $_SERVER['HTTP_USER_AGENT'], 'MSIE 9' ) ) 406 410 $class .= ' ie9'; 407 }408 411 } elseif ( wp_is_mobile() ) { 409 412 $class .= ' mobile'; -
trunk/src/wp-includes/general-template.php
r38467 r38468 2905 2905 * @global bool $is_safari 2906 2906 * @global bool $is_chrome 2907 * @global bool $is_IE 2907 2908 * 2908 2909 * @return bool 2909 2910 */ 2910 2911 function user_can_richedit() { 2911 global $wp_rich_edit, $is_gecko, $is_opera, $is_safari, $is_chrome, $is_ edge;2912 global $wp_rich_edit, $is_gecko, $is_opera, $is_safari, $is_chrome, $is_IE, $is_edge; 2912 2913 2913 2914 if ( !isset($wp_rich_edit) ) { … … 2917 2918 if ( $is_safari ) { 2918 2919 $wp_rich_edit = ! wp_is_mobile() || ( preg_match( '!AppleWebKit/(\d+)!', $_SERVER['HTTP_USER_AGENT'], $match ) && intval( $match[1] ) >= 534 ); 2919 } elseif ( $is_gecko || $is_chrome || wp_is_IE()|| $is_edge || ( $is_opera && !wp_is_mobile() ) ) {2920 } elseif ( $is_gecko || $is_chrome || $is_IE || $is_edge || ( $is_opera && !wp_is_mobile() ) ) { 2920 2921 $wp_rich_edit = true; 2921 2922 } -
trunk/src/wp-includes/link-template.php
r38467 r38468 2897 2897 * 2898 2898 * @since 2.6.0 2899 * 2900 * @global bool $is_IE Whether the browser matches an Internet Explorer user agent. 2899 2901 */ 2900 2902 function get_shortcut_link() { 2903 global $is_IE; 2904 2901 2905 $link = ''; 2902 2906 2903 if ( wp_is_IE()) {2907 if ( $is_IE ) { 2904 2908 /* 2905 2909 * Return the old/shorter bookmarklet code for MSIE 8 and lower, -
trunk/src/wp-includes/media-template.php
r38467 r38468 134 134 * 135 135 * @since 3.5.0 136 * 137 * @global bool $is_IE 136 138 */ 137 139 function wp_print_media_templates() { 140 global $is_IE; 138 141 $class = 'media-modal wp-core-ui'; 139 if ( wp_is_IE() && strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE 7') !== false ) {142 if ( $is_IE && strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE 7') !== false ) 140 143 $class .= ' ie7'; 141 }142 144 ?> 143 145 <!--[if lte IE 8]> -
trunk/src/wp-includes/vars.php
r38467 r38468 140 140 return $is_mobile; 141 141 } 142 143 /**144 * @since 4.7.0145 *146 * @global bool $is_IE Whether the current user agent is Internet Explorer147 *148 * @return bool Return the value of the $is_IE global.149 */150 function wp_is_IE() {151 global $is_IE;152 return $is_IE;153 }
Note: See TracChangeset
for help on using the changeset viewer.