WordPress.org

Make WordPress Core


Ignore:
Timestamp:
12/05/2012 03:15:53 AM (7 years ago)
Author:
nacin
Message:

Media IE7 fixes. props azaozz, lessbloat. fixes #22732.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/media.php

    r23038 r23061  
    15201520 */
    15211521function wp_print_media_templates() {
     1522    global $is_IE;
     1523    $class = 'media-modal wp-core-ui';
     1524    if ( $is_IE && strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE 7') !== false )
     1525        $class .= ' ie7';
    15221526    ?>
    15231527    <script type="text/html" id="tmpl-media-frame">
     
    15311535
    15321536    <script type="text/html" id="tmpl-media-modal">
    1533         <div class="media-modal wp-core-ui">
     1537        <div class="<?php echo $class; ?>">
    15341538            <a class="media-modal-close" href="#" title="<?php esc_attr_e('Close'); ?>"><span class="media-modal-icon"></span></a>
    15351539            <div class="media-modal-content"></div>
Note: See TracChangeset for help on using the changeset viewer.