Changeset 5749 for trunk/bp-forums/bp-forums-admin.php
- Timestamp:
- 02/13/2012 04:03:55 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-forums/bp-forums-admin.php
r5729 r5749 4 4 5 5 function bp_forums_add_admin_menu() { 6 global $bp;7 6 8 7 if ( ! bp_current_user_can( 'bp_moderate' ) ) … … 13 12 $hook = add_submenu_page( $page, __( 'BuddyPress Forums', 'buddypress' ), __( 'BuddyPress Forums', 'buddypress' ), 'manage_options', 'bb-forums-setup', 'bp_forums_bbpress_admin' ); 14 13 15 // Add a hook for common BP admin CSS/JS scripts16 add_action( "admin_print_styles-$hook", 'bp_core_add_admin_menu_styles' );17 18 14 // Fudge the highlighted subnav item when on a BuddyPress admin page 19 15 add_action( "admin_head-$hook", 'bp_core_modify_admin_menu_highlight' ); … … 22 18 23 19 function bp_forums_bbpress_admin() { 24 global $bp;25 20 26 21 $action = bp_get_admin_url( 'admin.php?page=bb-forums-setup&reinstall=1' ); ?> … … 209 204 210 205 function bp_forums_configure_existing_install() { 211 global $wpdb, $bbdb;212 206 213 207 check_admin_referer( 'bp_forums_existing_install_init' ); … … 232 226 233 227 function bp_forums_bbpress_install() { 234 global $wpdb, $b bdb, $bp;228 global $wpdb, $bp; 235 229 236 230 check_admin_referer( 'bp_forums_new_install_init' );
Note: See TracChangeset
for help on using the changeset viewer.