Changeset 9545
- Timestamp:
- 02/24/2015 03:09:27 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/admin/bp-core-admin-functions.php
r9517 r9545 33 33 * @global array $_registered_pages 34 34 * @global array $submenu 35 * @since BuddyPress (1.6 )35 * @since BuddyPress (1.6.0) 36 36 */ 37 37 function bp_core_admin_backpat_menu() { … … 72 72 * @global string $plugin_page 73 73 * @global array $submenu 74 * @since BuddyPress (1.6 )74 * @since BuddyPress (1.6.0) 75 75 */ 76 76 function bp_core_modify_admin_menu_highlight() { … … 94 94 * 95 95 * @see bp_core_admin_backpat_menu() 96 * @since BuddyPress (1.6 )96 * @since BuddyPress (1.6.0) 97 97 * @todo Add convenience links into the markup once new positions are finalised. 98 98 */ … … 120 120 * boxes. 121 121 * 122 * @since BuddyPress (1.5 )122 * @since BuddyPress (1.5.0) 123 123 * 124 124 * @uses bp_current_user_can() to check current user permissions before showing the notices … … 165 165 * loaded in time. 166 166 * 167 * @since BuddyPress (1.5 )167 * @since BuddyPress (1.5.0) 168 168 * 169 169 * @param string $notice The notice you are adding to the queue. … … 200 200 * @global WPDB $wpdb WordPress DB object 201 201 * @global WP_Rewrite $wp_rewrite 202 * @since BuddyPress (1.2 )202 * @since BuddyPress (1.2.0) 203 203 */ 204 204 function bp_core_activation_notice() { … … 330 330 * Redirect user to BuddyPress's What's New page on activation 331 331 * 332 * @since BuddyPress (1.7 )332 * @since BuddyPress (1.7.0) 333 333 * 334 334 * @internal Used internally to redirect BuddyPress to the about page on activation … … 371 371 * Output the tabs in the admin area 372 372 * 373 * @since BuddyPress (1.5 )373 * @since BuddyPress (1.5.0) 374 374 * @param string $active_tab Name of the tab that is active. Optional. 375 375 */ … … 378 378 $idle_class = 'nav-tab'; 379 379 $active_class = 'nav-tab nav-tab-active'; 380 381 /** 382 * Filters the admin tabs to be displayed. 383 * 384 * @since BuddyPress (1.9.0) 385 * 386 * @param array $value Array of tabs to output to the admin area. 387 */ 380 388 $tabs = apply_filters( 'bp_core_admin_tabs', bp_core_get_admin_tabs( $active_tab ) ); 381 389 … … 388 396 389 397 echo $tabs_html; 398 399 /** 400 * Fires after the output of tabs for the admin area. 401 * 402 * @since BuddyPress (1.5.0) 403 */ 390 404 do_action( 'bp_admin_tabs' ); 391 405 } … … 429 443 * Filters the tab data used in our wp-admin screens. 430 444 * 445 * @since BuddyPress (2.2.0) 446 * 431 447 * @param array $tabs Tab data. 432 * @since BuddyPress (2.2.0)433 448 */ 434 449 return apply_filters( 'bp_core_get_admin_tabs', $tabs ); … … 440 455 * adds contextual help to BuddyPress admin pages 441 456 * 442 * @since BuddyPress (1.7 )457 * @since BuddyPress (1.7.0) 443 458 * @todo Make this part of the BP_Component class and split into each component 444 459 */ … … 530 545 * renders contextual help content to contextual help tabs 531 546 * 532 * @since BuddyPress (1.7 )547 * @since BuddyPress (1.7.0) 533 548 */ 534 549 function bp_core_add_contextual_help_content( $tab = '' ) { … … 569 584 * Add a separator to the WordPress admin menus 570 585 * 571 * @since BuddyPress (1.7 )586 * @since BuddyPress (1.7.0) 572 587 * 573 588 * @uses bp_current_user_can() To check users capability on root blog … … 604 619 * Tell WordPress we have a custom menu order 605 620 * 606 * @since BuddyPress (1.7 )621 * @since BuddyPress (1.7.0) 607 622 * 608 623 * @param bool $menu_order Menu order … … 623 638 * Move our custom separator above our custom post types 624 639 * 625 * @since BuddyPress (1.7 )640 * @since BuddyPress (1.7.0) 626 641 * 627 642 * @param array $menu_order Menu Order … … 642 657 $last_sep = is_network_admin() ? 'separator1' : 'separator2'; 643 658 644 // Filter the custom admin menus 659 /** 660 * Filters the custom admin menus. 661 * 662 * @since BuddyPress (1.7.0) 663 * 664 * @param array $value Empty array. 665 */ 645 666 $custom_menus = (array) apply_filters( 'bp_admin_menu_order', array() ); 646 667 … … 688 709 * reconciles the two values and returns a single action being performed. 689 710 * 690 * @since BuddyPress (1.7 )711 * @since BuddyPress (1.7.0) 691 712 * @return string 692 713 */
Note: See TracChangeset
for help on using the changeset viewer.