Opened 5 years ago

Closed 5 years ago

#4517 closed defect (bug) (fixed)

Enqueueing chapter.js in wporg-developer theme so that child themes can enjoy it.

Reported by: imath's profile imath Owned by: coffee2code's profile coffee2code
Milestone: Priority: normal
Component: Developer Hub Keywords: has-patch



I'm building a child theme of wporg-developer and I currently have to dequeue wporg-developer-chapters to re-enqueue it using another handle and get_template_directory_uri() (instead of get_stylesheet_directory_uri() used in the theme_scripts_styles() function of the wporg-developer theme).

Would it be possible to use get_template_directory_uri() directly in the wporg-developer theme? That would be really great.

I'm attaching a patch with the suggested change.

Attachments (1)

4517.patch (1.2 KB) - added by imath 5 years ago.

Download all attachments as: .zip

Change History (2)

5 years ago

#1 @coffee2code
5 years ago

  • Owner set to coffee2code
  • Resolution set to fixed
  • Status changed from new to closed

In 8966:

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

Props imath.
Fixes #4517.

Note: See TracTickets for help on using tickets.