Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: BuddyPress-Links 0.4.x Releases and Support


Sven Lehnert
Participant

@svenl77

The plugin is not 100% update friendly, if I disable buddypress the site crashes.
Fatal error: Call to undefined function bp_core_load_template() in /data/wwwcust/sv3-132/html/wp-content/plugins/buddypress-links/bp-links-core.php on line 277

I fixed this bug for my version with if ( defined( ‘BP_VERSION’ ) )
`
/**
* Use this only inside of screen functions, etc
*
* @param string $template
*/
function bp_links_load_template( $template ) {
bp_links_setup_theme();
if ( defined( ‘BP_VERSION’ ) ){
bp_core_load_template( BP_LINKS_THEME . ‘/’ . $template );
}
}
`

and wp single:
Fatal error: Call to undefined function is_site_admin() in /data/wwwcust/sv3-155/html/wp-content/plugins/buddypress-links/bp-links-admin.php on line 20

I changed:
`
if ( !is_site_admin() )
return false;
`
to
`
if ( !current_user_can(‘level_10’) ){
return false;
}

`

Skip to toolbar