WordPress.org

Making WordPress.org

Opened 2 months ago

Closed 2 months ago

#4517 closed defect (fixed)

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

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

Description

Hi,

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 2 months ago.

Download all attachments as: .zip

Change History (2)

@imath
2 months ago

#1 @coffee2code
2 months 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.