Ticket #5247: 5247.diff
File 5247.diff, 1.7 KB (added by , 11 years ago) |
---|
-
bp-core/admin/bp-core-actions.php
41 41 add_action( 'admin_init', 'bp_admin_init' ); 42 42 add_action( 'admin_head', 'bp_admin_head' ); 43 43 add_action( 'admin_notices', 'bp_admin_notices' ); 44 add_action( 'admin_enqueue_scripts', 'bp_admin_enqueue_scripts' 44 add_action( 'admin_enqueue_scripts', 'bp_admin_enqueue_scripts', 10, 1 ); 45 45 add_action( 'network_admin_menu', 'bp_admin_menu' ); 46 46 add_action( 'custom_menu_order', 'bp_admin_custom_menu_order' ); 47 47 add_action( 'menu_order', 'bp_admin_menu_order' ); … … 130 130 } 131 131 132 132 /** 133 * Piggy back admin_ notices action133 * Piggy back admin_enqueue_scripts action 134 134 * 135 135 * @since BuddyPress (1.7) 136 * @uses do_action() Calls 'bp_admin_ notices'136 * @uses do_action() Calls 'bp_admin_enqueue_scripts' 137 137 */ 138 function bp_admin_enqueue_scripts( ) {139 do_action( 'bp_admin_enqueue_scripts' );138 function bp_admin_enqueue_scripts( $hook_suffix = '' ) { 139 do_action( 'bp_admin_enqueue_scripts', $hook_suffix ); 140 140 } 141 141 142 142 /** -
bp-xprofile/bp-xprofile-functions.php
758 758 } 759 759 760 760 $field_ids = array(); 761 761 762 foreach( (array) $user_visibility_levels as $field_id => $field_visibility ) { 762 763 if ( in_array( $field_visibility, $levels ) ) { 763 764 $field_ids[] = $field_id;