Created
February 5, 2015 17:36
-
-
Save imath/ef0d44e21bd2dd195147 to your computer and use it in GitHub Desktop.
Temporarly fix to BuddyPress Links when used with BuddyPress 2.2.
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
<?php | |
/** | |
* This is temparary, please advise the plugin author to use the BP_Component Class | |
* @see https://github.com/boonebgorges/buddypress-skeleton-component/blob/1.7/includes/bp-example-loader.php | |
*/ | |
function buddypress_links_temporary_fix( $retval, $component = '' ) { | |
if ( 'links' != $component ) { | |
return $retval; | |
} | |
return function_exists( 'bp_links_init' ); | |
} | |
add_filter( 'bp_is_active', 'buddypress_links_temporary_fix', 10, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for this. I'm working on a hotfix release now.