Changeset 3775
- Timestamp:
- 01/20/2011 09:08:27 PM (14 years ago)
- Location:
- branches/1.2
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1.2/bp-activity.php
r3218 r3775 100 100 } 101 101 add_action( 'admin_menu', 'bp_activity_check_installed' ); 102 add_action( 'network_admin_menu', 'bp_activity_check_installed' ); 102 103 103 104 function bp_activity_setup_root_component() { -
branches/1.2/bp-blogs.php
r3420 r3775 62 62 } 63 63 add_action( 'admin_menu', 'bp_blogs_check_installed' ); 64 add_action( 'network_admin_menu', 'bp_blogs_check_installed' ); 64 65 65 66 function bp_blogs_setup_globals() { -
branches/1.2/bp-core.php
r3447 r3775 286 286 } 287 287 add_action( 'admin_menu', 'bp_core_check_installed' ); 288 add_action( 'network_admin_menu', 'bp_core_check_installed' ); 288 289 289 290 /** … … 301 302 return false; 302 303 303 /* Add the administration tab under the "Site Admin" tab for site administrators */ 304 // If this is WP 3.1+ and multisite is enabled, only load on the Network Admin 305 if ( is_multisite() && function_exists( 'is_network_admin' ) && ! is_network_admin() ) 306 return false; 307 308 // Add the administration tab under the "Site Admin" tab for site administrators 304 309 bp_core_add_admin_menu_page( array( 305 310 'menu_title' => __( 'BuddyPress', 'buddypress' ), … … 314 319 } 315 320 add_action( 'admin_menu', 'bp_core_add_admin_menu' ); 321 add_action( 'network_admin_menu', 'bp_core_add_admin_menu' ); 316 322 317 323 /** -
branches/1.2/bp-core/bp-core-adminbar.php
r3774 r3775 292 292 } elseif ( !defined( 'BP_DISABLE_ADMIN_BAR' ) || !BP_DISABLE_ADMIN_BAR ) { 293 293 // Keep the WP admin bar from loading 294 show_admin_bar( false ); 294 if ( function_exists( 'show_admin_bar' ) ) 295 show_admin_bar( false ); 295 296 296 297 // Actions used to build the BP admin bar -
branches/1.2/bp-forums.php
r3192 r3775 104 104 } 105 105 add_action( 'admin_menu', 'bp_forums_add_admin_menu' ); 106 add_action( 'network_admin_menu', 'bp_forums_add_admin_menu' ); 106 107 107 108 /* Forum Functions */ -
branches/1.2/bp-friends.php
r3218 r3775 63 63 } 64 64 add_action( 'admin_menu', 'friends_check_installed' ); 65 add_action( 'network_admin_menu', 'friends_check_installed' ); 65 66 66 67 function friends_setup_nav() { -
branches/1.2/bp-groups.php
r3271 r3775 118 118 } 119 119 add_action( 'admin_menu', 'groups_check_installed' ); 120 add_action( 'network_admin_menu', 'groups_check_installed' ); 120 121 121 122 function groups_setup_nav() { -
branches/1.2/bp-messages.php
r3218 r3775 98 98 } 99 99 add_action( 'admin_menu', 'messages_check_installed' ); 100 add_action( 'network_admin_menu', 'messages_check_installed' ); 100 101 101 102 function messages_setup_nav() { -
branches/1.2/bp-xprofile.php
r3218 r3775 153 153 } 154 154 add_action( 'admin_menu', 'xprofile_add_admin_menu' ); 155 add_action( 'network_admin_menu', 'xprofile_add_admin_menu' ); 155 156 156 157 /** -
branches/1.2/bp-xprofile/bp-xprofile-cssjs.php
r1963 r3775 2 2 3 3 function xprofile_add_admin_css() { 4 // If this is WP 3.1+ and multisite is enabled, only load on the Network Admin 5 if ( is_multisite() && function_exists( 'is_network_admin' ) && ! is_network_admin() ) 6 return false; 7 4 8 wp_enqueue_style( 'xprofile-admin-css', BP_PLUGIN_URL . '/bp-xprofile/admin/css/admin.css' ); 5 9 } 6 10 add_action( 'admin_menu', 'xprofile_add_admin_css' ); 11 add_action( 'network_admin_menu', 'xprofile_add_admin_css' ); 7 12 8 13 function xprofile_add_admin_js() { 14 // If this is WP 3.1+ and multisite is enabled, only load on the Network Admin 15 if ( is_multisite() && function_exists( 'is_network_admin' ) && ! is_network_admin() ) 16 return false; 17 9 18 if ( strpos( $_GET['page'], 'bp-profile-setup' ) !== false ) { 10 19 wp_enqueue_script( array( "jquery-ui-sortable" ) ); … … 13 22 } 14 23 add_action( 'admin_menu', 'xprofile_add_admin_js', 1 ); 24 add_action( 'network_admin_menu', 'xprofile_add_admin_js', 1 ); 15 25 16 26 ?>
Note: See TracChangeset
for help on using the changeset viewer.