Changeset 758142
- Timestamp:
- 08/19/2013 01:40:17 AM (13 years ago)
- Location:
- bp-group-hierarchy/trunk
- Files:
-
- 5 edited
-
bp-group-hierarchy-actions.php (modified) (1 diff)
-
bp-group-hierarchy-classes.php (modified) (3 diffs)
-
index.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
templates/tree/index.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
bp-group-hierarchy/trunk/bp-group-hierarchy-actions.php
r752661 r758142 47 47 function bp_group_hierarchy_load_components() { 48 48 49 if( version_compare( bp_get_version(), '1.9', '>=' ) ) {49 if( version_compare( (float)bp_get_version(), '1.9', '>=' ) ) { 50 50 // Load BP 1.9+ class -- still using same file until the new one is written 51 51 require ( dirname( __FILE__ ) . '/bp-group-hierarchy-classes.php' ); -
bp-group-hierarchy/trunk/bp-group-hierarchy-classes.php
r752661 r758142 29 29 } 30 30 31 if( !isset($bp->groups)) {31 if( ! bp_is_active( 'groups' ) ) { 32 32 bp_group_hierarchy_debug('BP Groups Component not loaded'); 33 33 return; … … 85 85 86 86 if($this->id) { 87 88 do_action_ref_array( 'bp_group_hierarchy_before_save', array( &$this ) ); 89 87 90 $sql = $wpdb->prepare( 88 91 "UPDATE {$bp->groups->table_name} SET … … 106 109 $this->slug = $this->path; 107 110 111 do_action_ref_array( 'bp_group_hierarchy_after_save', array( &$this ) ); 112 108 113 return true; 109 114 } -
bp-group-hierarchy/trunk/index.php
r752661 r758142 36 36 37 37 // 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' ) ) { 39 39 _e( 'BuddyPress is not installed or the Groups component is not activated. Cannot continue install.', 'bp-group-hierarchy' ); 40 40 return; -
bp-group-hierarchy/trunk/readme.txt
r721886 r758142 3 3 Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=6BKDCMJRYPKNN&lc=US&item_name=BP%20Group%20Hierarchy¤cy_code=USD 4 4 Tags: buddypress, groups, subgroups, hierarchy, parent group 5 Requires at least: WP 3.2, BuddyPress 1. 56 Tested up to: WP 3.6 -beta3, BuddyPress 1.7.25 Requires at least: WP 3.2, BuddyPress 1.6 6 Tested up to: WP 3.6, BuddyPress 1.8.1 7 7 Stable tag: 1.3.9 8 8 … … 59 59 60 60 == Changelog == 61 62 = 1.4.0 = 63 * Removed: Support for BuddyPress 1.5 61 64 62 65 = 1.3.9 = -
bp-group-hierarchy/trunk/templates/tree/index.php
r652927 r758142 6 6 */ 7 7 8 ?> 9 10 <?php get_header( 'buddypress' ); ?> 8 get_header( 'buddypress' ); ?> 11 9 12 10 <?php do_action( 'bp_before_directory_groups_page' ); ?> … … 61 59 62 60 <?php do_action( 'bp_groups_directory_order_options' ); ?> 61 63 62 </select> 64 63 </li>
Note: See TracChangeset
for help on using the changeset viewer.