Make WordPress Core

Ticket #22446: 22446-icon-placement-v2.diff

File 22446-icon-placement-v2.diff, 1.9 KB (added by lessbloat, 12 years ago)
  • wp-includes/css/media-views.css

     
    484484        user-select:         none;
    485485}
    486486
     487.ie8 .attachments .attachment,
     488.ie9 .attachments .attachment,
     489.ie10 .attachments .attachment {
     490        text-align: center;
     491}
     492.ie8 .attachments .attachment .icon,
     493.ie9 .attachments .attachment .icon,
     494.ie10 .attachments .attachment .icon {
     495        padding-top: 20%;
     496        position: relative;
     497        left: 0;
     498        top: 0;
     499}
     500
    487501.selected.attachment {
    488502        box-shadow:
    489503                0 0 0 1px #fff,
  • wp-admin/includes/template.php

     
    16341634        return $button;
    16351635}
    16361636
     1637function is_ie_browser() {
     1638        if ( strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE 8') !== false )
     1639                echo 'ie8';
     1640        if ( strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE 9') !== false )
     1641                echo 'ie9';
     1642        if ( strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE 10') !== false )
     1643                echo 'ie10';
     1644}
     1645
    16371646function _wp_admin_html_begin() {
    16381647        $admin_html_class = ( is_admin_bar_showing() ) ? 'wp-toolbar' : '';
    16391648?>
    16401649<!DOCTYPE html>
    1641 <!--[if IE 8]>
    1642 <html xmlns="http://www.w3.org/1999/xhtml" class="ie8 <?php echo $admin_html_class; ?>" <?php do_action('admin_xml_ns'); ?> <?php language_attributes(); ?>>
    1643 <![endif]-->
    1644 <!--[if !(IE 8) ]><!-->
    1645 <html xmlns="http://www.w3.org/1999/xhtml" class="<?php echo $admin_html_class; ?>" <?php do_action('admin_xml_ns'); ?> <?php language_attributes(); ?>>
     1650<html xmlns="http://www.w3.org/1999/xhtml" class="<?php echo $admin_html_class; ?> <?php is_ie_browser(); ?>" <?php do_action('admin_xml_ns'); ?> <?php language_attributes(); ?>>
    16461651<!--<![endif]-->
    16471652<head>
    16481653<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_option('blog_charset'); ?>" />