Making WordPress.org

Changeset 8966


Ignore:
Timestamp:
06/19/2019 08:16:40 PM (5 years ago)
Author:
coffee2code
Message:

Developer: Use get_template_directory_uri() instead of get_stylesheet_directory_uri() when enqueuing js/chapters.js.

Props imath.
Fixes #4517.

File:
1 edited

Legend:

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

    r8912 r8966  
    357357    wp_enqueue_script( 'wporg-developer-skip-link-focus-fix', get_template_directory_uri() . '/js/skip-link-focus-fix.js', array(), '20130115', true );
    358358    wp_enqueue_script( 'wporg-developer-search', get_template_directory_uri() . '/js/search.js', array(), '20150430', true );
    359     wp_enqueue_script( 'wporg-developer-chapters', get_stylesheet_directory_uri() . '/js/chapters.js', array( 'jquery' ), '20190603' );
     359    wp_enqueue_script( 'wporg-developer-chapters', get_template_directory_uri() . '/js/chapters.js', array( 'jquery' ), '20190603' );
    360360    wp_enqueue_script( 'wporg-developer-menu', get_template_directory_uri() . '/js/menu.js', array( 'jquery' ), '20180201', true );
    361361}
Note: See TracChangeset for help on using the changeset viewer.