Making WordPress.org

Changeset 1438


Ignore:
Timestamp:
03/20/2015 03:59:39 PM (10 years ago)
Author:
obenland
Message:

WP.org Themes: Improve IE8 support.

The admin has .ie* html classes, the global header does not.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/functions.php

    r1434 r1438  
    7777 * Extend the default WordPress body classes.
    7878 *
    79  * Adds body classes to denote singular themes.
     79 * Adds body classes to
     80 * 1. denote singular themes.
     81 * 2. Identify IE8.
    8082 *
    8183 * @param array $classes A list of existing body class values.
     
    8587    if ( is_singular( 'repopackage' ) ) {
    8688        $classes[] = 'modal-open';
     89    }
     90
     91    if ( $GLOBALS['is_IE'] && false !== strpos( $_SERVER['HTTP_USER_AGENT'], 'MSIE 8' ) ) {
     92        $classes[] = 'ie8';
    8793    }
    8894
Note: See TracChangeset for help on using the changeset viewer.