Make WordPress Core

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

File 22446-icon-placement-v5.diff, 2.7 KB (added by lessbloat, 12 years ago)
  • wp-includes/media.php

     
    14961496 * @since 3.5.0
    14971497 */
    14981498function wp_print_media_templates( $attachment ) {
     1499        $ie_class = '';
     1500        if ( strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE 8') !== false )
     1501                $ie_class = ' ie8';
     1502        if ( strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE 9') !== false )
     1503                $ie_class = ' ie9';
     1504        if ( strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE 10') !== false )
     1505                $ie_class = ' ie10';
    14991506        ?>
    15001507        <script type="text/html" id="tmpl-media-frame">
    15011508                <div class="media-frame-menu"></div>
     
    15051512        </script>
    15061513
    15071514        <script type="text/html" id="tmpl-media-modal">
    1508                 <div class="media-modal">
     1515                <div class="media-modal<?php echo $ie_class; ?>">
    15091516                        <h3 class="media-modal-title">{{ data.title }}</h3>
    15101517                        <a class="media-modal-close" href="" title="<?php esc_attr_e('Close'); ?>">&times;</a>
    15111518                </div>
  • 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

     
    16361636
    16371637function _wp_admin_html_begin() {
    16381638        $admin_html_class = ( is_admin_bar_showing() ) ? 'wp-toolbar' : '';
     1639
     1640        if ( strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE 8') !== false )
     1641                $admin_html_class .= ' ie8';
     1642        if ( strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE 9') !== false )
     1643                $admin_html_class .= ' ie9';
     1644        if ( strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE 10') !== false )
     1645                $admin_html_class .= ' ie10';
    16391646?>
    16401647<!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) ]><!-->
    16451648<html xmlns="http://www.w3.org/1999/xhtml" class="<?php echo $admin_html_class; ?>" <?php do_action('admin_xml_ns'); ?> <?php language_attributes(); ?>>
    1646 <!--<![endif]-->
    16471649<head>
    16481650<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_option('blog_charset'); ?>" />
    16491651<?php