mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
General: revert [38467], wp_is_IE() should not exist.
See #37699. git-svn-id: https://develop.svn.wordpress.org/trunk@38468 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -30,7 +30,7 @@ $_wp_editor_expand = $_content_editor_dfw = false;
|
||||
* @param string $post_type Post type.
|
||||
*/
|
||||
if ( post_type_supports( $post_type, 'editor' ) && ! wp_is_mobile() &&
|
||||
! ( wp_is_IE() && preg_match( '/MSIE [5678]/', $_SERVER['HTTP_USER_AGENT'] ) ) &&
|
||||
! ( $is_IE && preg_match( '/MSIE [5678]/', $_SERVER['HTTP_USER_AGENT'] ) ) &&
|
||||
apply_filters( 'wp_editor_expand', true, $post_type ) ) {
|
||||
|
||||
wp_enqueue_script('editor-expand');
|
||||
|
||||
@@ -1187,6 +1187,7 @@ class WP_Press_This {
|
||||
* @access public
|
||||
*
|
||||
* @global WP_Locale $wp_locale
|
||||
* @global bool $is_IE
|
||||
*/
|
||||
public function html() {
|
||||
global $wp_locale;
|
||||
@@ -1226,7 +1227,7 @@ class WP_Press_This {
|
||||
|
||||
add_filter( 'mce_css', array( $this, 'add_editor_style' ) );
|
||||
|
||||
if ( wp_is_IE() ) {
|
||||
if ( ! empty( $GLOBALS['is_IE'] ) ) {
|
||||
@header( 'X-UA-Compatible: IE=edge' );
|
||||
}
|
||||
|
||||
|
||||
@@ -1783,12 +1783,13 @@ function media_upload_header() {
|
||||
*
|
||||
* @global string $type
|
||||
* @global string $tab
|
||||
* @global bool $is_IE
|
||||
* @global bool $is_opera
|
||||
*
|
||||
* @param array $errors
|
||||
*/
|
||||
function media_upload_form( $errors = null ) {
|
||||
global $type, $tab, $is_opera;
|
||||
global $type, $tab, $is_IE, $is_opera;
|
||||
|
||||
if ( ! _device_can_upload() ) {
|
||||
echo '<p>' . sprintf( __('The web browser on your device cannot be used to upload files. You may be able to use the <a href="%s">native app for your device</a> instead.'), 'https://apps.wordpress.org/' ) . '</p>';
|
||||
|
||||
@@ -1945,12 +1945,17 @@ function get_submit_button( $text = '', $type = 'primary large', $name = 'submit
|
||||
return $button;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @global bool $is_IE
|
||||
*/
|
||||
function _wp_admin_html_begin() {
|
||||
global $is_IE;
|
||||
|
||||
$admin_html_class = ( is_admin_bar_showing() ) ? 'wp-toolbar' : '';
|
||||
|
||||
if ( wp_is_IE() ) {
|
||||
if ( $is_IE )
|
||||
@header('X-UA-Compatible: IE=edge');
|
||||
}
|
||||
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
|
||||
Reference in New Issue
Block a user