Changeset 869
- Timestamp:
- 01/19/2009 04:56:14 AM (16 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-forums.php
r754 r869 21 21 if ( get_usermeta( $bp['loggedin_userid'], 'bb_capabilities' ) == '' ) 22 22 bp_forums_make_user_active_member( $bp['loggedin_userid'] ); 23 24 if ( $bp['current_component'] == $bp['groups']['slug'] || $_GET['page'] == 'bp_forums_settings' ) {25 if ( defined('XMLRPC_REQUEST') && XMLRPC_REQUEST ) return;26 if ( defined('DOING_AJAX') && DOING_AJAX ) return;27 28 include_once( ABSPATH . WPINC . '/class-IXR.php' );29 30 $bbpress_live = new bbPress_Live();31 }32 23 } 33 24 add_action( 'wp', 'bp_forums_setup', 3 ); -
trunk/bp-forums/bp-forums-admin.php
r827 r869 5 5 if ( is_site_admin() ) { 6 6 /* Add the administration tab under the "Site Admin" tab for site administrators */ 7 add_submenu_page( 'wpmu-admin.php', __( ' Group Forums', 'buddypress' ), __( 'GroupForums', 'buddypress' ), 1, "bp_forums_settings", "bp_forums_bbpress_admin" );7 add_submenu_page( 'wpmu-admin.php', __( 'bbPress Forums', 'buddypress' ), __( 'bbPress Forums', 'buddypress' ), 1, "bp_forums_settings", "bp_forums_bbpress_admin" ); 8 8 } 9 9 } … … 12 12 function bp_forums_bbpress_admin() { 13 13 global $bp, $bbpress_live; 14 15 if ( !is_object( $bbpress_live ) ) { 16 include_once( ABSPATH . WPINC . '/class-IXR.php' ); 17 $bbpress_live = new bbPress_Live(); 18 } 14 19 15 20 if ( isset( $_POST['submit'] ) ) {
Note: See TracChangeset
for help on using the changeset viewer.