WordPress.org

Plugin Directory

yet-another-advanced-paged-navigation

Opened 2 years ago

Last modified 2 years ago

#1496 new enhancement

More Flexible JS/CSS enqueue paths

Reported by: bigdawggi Owned by: YaaL
Priority: normal Severity: normal
Plugin: yet-another-advanced-paged-navigation Keywords: wp_enqueue_script, wp_enqueue_style, paths
Cc:

Description

Installed the plugin on a client's site who's wp-content directory is not in a standard location. The string search and replacement that plugins_url() uses is pretty brittle and could not handle this case. I'm attaching a diff that allows the path for JS and CSS assets to be a little more flexible to support this non-standard location.

Attachments (1)

enqueue-path-fix.diff (1.2 KB) - added by bigdawggi 2 years ago.

Download all attachments as: .zip

Change History (2)

bigdawggi2 years ago

comment:1 bigdawggi2 years ago

  • Type changed from defect to enhancement
Note: See TracTickets for help on using tickets.