Plugin Directory


Opened 6 years ago

Last modified 6 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


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 6 years ago.

Download all attachments as: .zip

Change History (2)

@bigdawggi6 years ago

comment:1 @bigdawggi6 years ago

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