Make WordPress Core


Ignore:
Timestamp:
06/22/2023 06:09:37 AM (3 years ago)
Author:
audrasjb
Message:

Twenty Fifteen: Remove IE specific resources.

This changeset switches the wp_enqueue_* functions to wp_register_* for IE-related resources, which maintains handles, source references, etc., keeps all
IE-specific files within the theme package to avoid errors, and requires site admins to opt in to loading them in the theme.

It also replaces the content of html5.js shiv with a comment (to avoid 404s), removes IE-specific code in general stylesheets, and removes IE specific code
from Customizer, header.php and custom-header.php.

Props desrosj, sabernhardt, audrasjb, neychok, oglekler.
See #56699.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentyfifteen/inc/custom-header.php

    r51401 r55981  
    273273                .site-title a:hover,
    274274                .site-title a:focus {
    275                         color: %1$s; /* Fallback for IE7 and IE8 */
    276275                        color: %2$s;
    277276                }
    278277
    279278                .secondary-toggle {
    280                         border-color: %1$s; /* Fallback for IE7 and IE8 */
    281279                        border-color: %3$s;
    282280                }
     
    284282                .secondary-toggle:hover,
    285283                .secondary-toggle:focus {
    286                         border-color: %1$s; /* Fallback for IE7 and IE8 */
    287284                        border-color: %4$s;
    288285                }
    289286
    290287                .site-title a {
    291                         outline-color: %1$s; /* Fallback for IE7 and IE8 */
    292288                        outline-color: %4$s;
    293289                }
Note: See TracChangeset for help on using the changeset viewer.