Make WordPress Core

Ticket #56699: 56699.twentyseventeen.patch

File 56699.twentyseventeen.patch, 711 bytes (added by sabernhardt, 10 months ago)

use wp_register_script in Twenty Seventeen

  • src/wp-content/themes/twentyseventeen/functions.php

     
    473473        wp_style_add_data( 'twentyseventeen-ie8', 'conditional', 'lt IE 9' );
    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
    479479        // Skip-link fix is no longer enqueued by default.