Ticket #22446: 22446-icon-placement-v5.diff
File 22446-icon-placement-v5.diff, 2.7 KB (added by , 12 years ago) |
---|
-
wp-includes/media.php
1496 1496 * @since 3.5.0 1497 1497 */ 1498 1498 function 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'; 1499 1506 ?> 1500 1507 <script type="text/html" id="tmpl-media-frame"> 1501 1508 <div class="media-frame-menu"></div> … … 1505 1512 </script> 1506 1513 1507 1514 <script type="text/html" id="tmpl-media-modal"> 1508 <div class="media-modal ">1515 <div class="media-modal<?php echo $ie_class; ?>"> 1509 1516 <h3 class="media-modal-title">{{ data.title }}</h3> 1510 1517 <a class="media-modal-close" href="" title="<?php esc_attr_e('Close'); ?>">×</a> 1511 1518 </div> -
wp-includes/css/media-views.css
484 484 user-select: none; 485 485 } 486 486 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 487 501 .selected.attachment { 488 502 box-shadow: 489 503 0 0 0 1px #fff, -
wp-admin/includes/template.php
1636 1636 1637 1637 function _wp_admin_html_begin() { 1638 1638 $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'; 1639 1646 ?> 1640 1647 <!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 1648 <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]-->1647 1649 <head> 1648 1650 <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_option('blog_charset'); ?>" /> 1649 1651 <?php