Skip to:
Content

BuddyPress.org

Opened 10 years ago

Closed 7 years ago

Last modified 7 years ago

#5797 closed enhancement (wontfix)

Dynamically generated asset handles not available to other plugins

Reported by: boonebgorges's profile boonebgorges Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Templates Keywords:
Cc:

Description

In r7205 (#4949) we introduced the concept of a "template stack" for CSS and JS assets. This means that the handle used when enqueuing the assets is dynamic. This causes problems when, in another plugin, you want to be able to make a script dependent on the BP scripts - it's not possible to tell (without reaching into the $wp_scripts global) what the handle for the JS file is.

Might be nice to store the handles in the buddypress() object or something.

Change History (7)

#1 @DJPaul
10 years ago

#5972 needs fixing before this one.

#2 @DJPaul
10 years ago

  • Component changed from Core to Theme / Template Parts

#3 @DJPaul
10 years ago

  • Milestone changed from 2.2 to Future Release

#4 @DJPaul
10 years ago

#5972 is now fixed with r9524, and that ticket contains some initial discussion about whether we should make BP-Legacy's CSS and JS files have non-dynamic handles, or whether we should leave BP-Legacy as-is and instead use non-dynamic handles for the CSS/JS in a future template pack.

#5 @DJPaul
8 years ago

  • Component changed from Appearance - Template Parts to Templates

#6 @DJPaul
7 years ago

  • Milestone Future Release deleted
  • Resolution set to wontfix
  • Status changed from new to closed

Closing most tickets related to BP-Default and BP-Legacy, since the upcoming BP-Nouveau template pack (planned for 3.0) will make these redundant.

#7 @DJPaul
7 years ago

Closing most tickets related to BP-Default and BP-Legacy, since the upcoming BP-Nouveau template pack (planned for 3.0) will make these redundant.

Note: See TracTickets for help on using tickets.