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