Plugin Directory

Changeset 758142


Ignore:
Timestamp:
08/19/2013 01:40:17 AM (13 years ago)
Author:
ddean
Message:

Begin updating for BP 1.9, remove BP 1.5 support; merge contirbution from christianwach - see: https://github.com/ddean4040/BP-Group-Hierarchy/pull/1

Location:
bp-group-hierarchy/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • bp-group-hierarchy/trunk/bp-group-hierarchy-actions.php

    r752661 r758142  
    4747function bp_group_hierarchy_load_components() {
    4848
    49     if( version_compare( bp_get_version(), '1.9', '>=' ) ) {
     49    if( version_compare( (float)bp_get_version(), '1.9', '>=' ) ) {
    5050        // Load BP 1.9+ class -- still using same file until the new one is written
    5151        require ( dirname( __FILE__ ) . '/bp-group-hierarchy-classes.php' );
  • bp-group-hierarchy/trunk/bp-group-hierarchy-classes.php

    r752661 r758142  
    2929        }
    3030       
    31         if(!isset($bp->groups)) {
     31        if( ! bp_is_active( 'groups' ) ) {
    3232            bp_group_hierarchy_debug('BP Groups Component not loaded');
    3333            return;
     
    8585       
    8686        if($this->id) {
     87           
     88            do_action_ref_array( 'bp_group_hierarchy_before_save', array( &$this ) );
     89           
    8790            $sql = $wpdb->prepare(
    8891                "UPDATE {$bp->groups->table_name} SET
     
    106109            $this->slug = $this->path;
    107110           
     111            do_action_ref_array( 'bp_group_hierarchy_after_save', array( &$this ) );
     112           
    108113            return true;
    109114        }
  • bp-group-hierarchy/trunk/index.php

    r752661 r758142  
    3636
    3737    // Check whether BP is active and whether Groups component is loaded, and throw error if not
    38     if( ! function_exists( 'buddypress' ) || ! array_key_exists( 'groups', $bp->active_components ) ) {
     38    if( ! function_exists( 'buddypress' ) || ! bp_is_active( 'groups' ) ) {
    3939        _e( 'BuddyPress is not installed or the Groups component is not activated. Cannot continue install.', 'bp-group-hierarchy' );
    4040        return;
  • bp-group-hierarchy/trunk/readme.txt

    r721886 r758142  
    33Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=6BKDCMJRYPKNN&lc=US&item_name=BP%20Group%20Hierarchy&currency_code=USD
    44Tags: buddypress, groups, subgroups, hierarchy, parent group
    5 Requires at least: WP 3.2, BuddyPress 1.5
    6 Tested up to: WP 3.6-beta3, BuddyPress 1.7.2
     5Requires at least: WP 3.2, BuddyPress 1.6
     6Tested up to: WP 3.6, BuddyPress 1.8.1
    77Stable tag: 1.3.9
    88
     
    5959
    6060== Changelog ==
     61
     62= 1.4.0 =
     63* Removed: Support for BuddyPress 1.5
    6164
    6265= 1.3.9 =
  • bp-group-hierarchy/trunk/templates/tree/index.php

    r652927 r758142  
    66 */
    77
    8 ?>
    9 
    10 <?php get_header( 'buddypress' ); ?>
     8get_header( 'buddypress' ); ?>
    119
    1210    <?php do_action( 'bp_before_directory_groups_page' ); ?>
     
    6159
    6260                            <?php do_action( 'bp_groups_directory_order_options' ); ?>
     61
    6362                        </select>
    6463                    </li>
Note: See TracChangeset for help on using the changeset viewer.