Make WordPress Core

Ticket #4254: 4254.diff

File 4254.diff, 984 bytes (added by rob1n, 17 years ago)
  • wp-admin/includes/template.php

     
    492492}
    493493
    494494function browse_happy() {
    495         $getit = __( 'WordPress recommends a better browser' );
    496         echo '
    497                 <p id="bh" style="text-align: center;"><a href="http://browsehappy.com/" title="'.$getit.'"><img src="images/browse-happy.gif" alt="Browse Happy" /></a></p>
    498                 ';
     495?>
     496        <!--[if lt IE 7]>
     497                <p id="bh" style="text-align:center"><a href="http://browsehappy.com/" title="<?php _e( 'WordPress recommends a better browser' ); ?>"><img src="<?php bloginfo( 'wpurl' ); ?>/wp-admin/images/browse-happy.gif" alt="Browse Happy" /></a></p>
     498        <![endif]-->
     499<?php
    499500}
    500501
    501 if (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') !== false)
     502if ( $is_IE ) {
    502503        add_action( 'admin_footer', 'browse_happy' );
     504}
    503505
    504506function the_attachment_links( $id = false ) {
    505507        $id = (int) $id;