[buddypress-trac] [BuddyPress Trac] #7124: bp_locate_template_asset() should use the theme compat dir and theme compat url
buddypress-trac
noreply at wordpress.org
Wed Jun 15 22:59:54 UTC 2016
#7124: bp_locate_template_asset() should use the theme compat dir and theme compat
url
--------------------------------+---------------------------------
Reporter: imath | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Under Consideration
Component: API - Theme Compat | Version:
Severity: normal | Keywords: has-patch
--------------------------------+---------------------------------
@r-a-y when doing the replace thing, the `$data['uri']` is not good for a
symlinked/custom template pack. Just tested with BP Nouveau.
I think using `bp_get_theme_compat_dir()` & `bp_get_theme_compat_url()`
would work for any template pack (including BP Legacy).
It's working for BP Nouveau ;)
As you only use `$data['file']` to include the embed css inline there's no
big deal, but it makes the `bp_locate_template_asset()` unusable for other
assets.
See attached patch.
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/7124>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list