WordPress.org

Plugin Directory

Changeset 428902


Ignore:
Timestamp:
08/26/11 07:25:04 (3 years ago)
Author:
ydubois
Message:

Bugfix to avoid crash when Group Component is turned off in DuddyPress Component Setup menu

Location:
yd-buddypress-feed-syndication/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • yd-buddypress-feed-syndication/trunk/inc/ydbfs.inc.php

    r428720 r428902  
    2020        add_filter( 'wp_feed_cache_transient_lifetime', array( &$this, 'set_transient_lifetime' ) ); 
    2121         
    22         bp_register_group_extension( 'groupFeedSyndication' ); 
     22        if( function_exists( 'bp_register_group_extension' ) ) { 
     23            bp_register_group_extension( 'groupFeedSyndication' ); 
     24        } 
    2325         
    2426        //add_filter( 'bp_activity_permalink', array( &$this, 'add_target' ), 10000 ); 
     
    588590 
    589591// This is inspired by the external-group-blogs BP plugin 
    590      
     592 
     593if( class_exists( 'BP_Group_Extension' ) ) { 
    591594/* Group blog extension using the BuddyPress group extension API */ 
    592595class groupFeedSyndication extends BP_Group_Extension { 
     
    887890    } 
    888891} 
    889  
     892} 
    890893 
    891894?> 
  • yd-buddypress-feed-syndication/trunk/yd-buddypress-feed-syndication.php

    r428720 r428902  
    33 * @package YD_BuddyPress-feed-syndication 
    44 * @author Yann Dubois 
    5  * @version 2.0.0 
     5 * @version 2.0.1 
    66 */ 
    77 
     
    1010 Plugin URI: http://www.yann.com/ 
    1111 Description: Syndicate and aggregate any RSS feeds into your BuddyPress activity feed/wall (like with Facebook). 
    12  Version: 2.0.0 
     12 Version: 2.0.1 
    1313 Author: Yann Dubois 
    1414 Author URI: http://www.yann.com/ 
     
    3737 
    3838/** 
     39 Revision 2.0.1: 
     40 - Bugfix: don't crash when Group Component is not activated in BuddyPress Component Setup 
    3941 Revision 2.0.0: 
    4042 - Production release of 2011/08/25 
     
    8789    array( 
    8890        'name'              => 'YD BuddyPress Feed Syndication', 
    89         'version'           => '2.0.0', 
     91        'version'           => '2.0.1', 
    9092        'has_option_page'   => true, 
    9193        'option_page_title' => 'YD Feed Syndication', 
Note: See TracChangeset for help on using the changeset viewer.