Skip to content

Instantly share code, notes, and snippets.

@imath
Created February 5, 2015 17:36
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save imath/ef0d44e21bd2dd195147 to your computer and use it in GitHub Desktop.
Save imath/ef0d44e21bd2dd195147 to your computer and use it in GitHub Desktop.
Temporarly fix to BuddyPress Links when used with BuddyPress 2.2.
<?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 );
@MrMaz
Copy link

MrMaz commented Feb 5, 2015

Thanks for this. I'm working on a hotfix release now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment