-
-
Save anonymous/1287f6e5b925b13250e82f823513fa9b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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