Skip to content

Instantly share code, notes, and snippets.

@ntwb
Created May 10, 2014 03:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ntwb/6b229b09ab864a9dbd4d to your computer and use it in GitHub Desktop.
Save ntwb/6b229b09ab864a9dbd4d to your computer and use it in GitHub Desktop.
When bbPress Capabilities is network activated we need to check if bbPress exists
Index: bbp-capabilities.php
===================================================================
--- bbp-capabilities.php (revision 911477)
+++ bbp-capabilities.php (working copy)
@@ -543,7 +543,6 @@
}
/**
-/**
* Loads bbPress users admin area
*
* @package bbPress
@@ -610,7 +609,7 @@
public function table_css() {
// Non admin action
- if ( bbp_is_single_user_edit() || is_admin() ) : ?>
+ if ( function_exists ('is_bbpress') && bbp_is_single_user_edit() || is_admin() ) : ?>
<style type="text/css" media="screen">
/*<![CDATA[*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment