Make WordPress Core

Changeset 56188


Ignore:
Timestamp:
07/10/2023 10:02:31 PM (15 months ago)
Author:
audrasjb
Message:

Twenty Seventeen: Use wp_register_script() to register HTML5 Shiv script.

This replaces wp_register_style() with wp_register_script().

Props sabernhardt.
Fixes #56699.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentyseventeen/functions.php

    r55980 r56188  
    474474
    475475    // Register the html5 shiv.
    476     wp_register_style( 'html5', get_theme_file_uri( '/assets/js/html5.js' ), array(), '20161020' );
     476    wp_register_script( 'html5', get_theme_file_uri( '/assets/js/html5.js' ), array(), '20161020' );
    477477    wp_script_add_data( 'html5', 'conditional', 'lt IE 9' );
    478478
Note: See TracChangeset for help on using the changeset viewer.