Skip to content

Instantly share code, notes, and snippets.

/-
Created Aug 2, 2017

Embed
What would you like to do?
Index: templates/default/bbpress-functions.php
===================================================================
--- templates/default/bbpress-functions.php (revision 1707049)
+++ templates/default/bbpress-functions.php (working copy)
@@ -126,6 +126,9 @@
* @uses wp_enqueue_style() To enqueue the styles
*/
public function enqueue_styles() {
+ if ( ! is_bbpress() ) {
+ return;
+ }
// RTL and/or minified
$suffix = is_rtl() ? '-rtl' : '';
@@ -157,6 +160,9 @@
* @uses wp_enqueue_script() To enqueue the scripts
*/
public function enqueue_scripts() {
+ if ( ! is_bbpress() ) {
+ return;
+ }
// Setup scripts array
$scripts = array();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.