Changeset 13108 for trunk/src/bp-core/bp-core-buddybar.php
- Timestamp:
- 09/12/2021 08:43:39 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/bp-core-buddybar.php
r13093 r13108 51 51 'position' => 99, // Index of where this nav item should be positioned. 52 52 'screen_function' => false, // The name of the function to run when clicked. 53 'default_subnav_slug' => false // The slug of the default subnav item to select when clicked. 54 ); 55 56 $r = wp_parse_args( $args, $defaults ); 53 'default_subnav_slug' => false, // The slug of the default subnav item to select when clicked. 54 ); 55 56 $r = bp_parse_args( 57 $args, 58 $defaults 59 ); 57 60 58 61 // Validate nav link data. … … 131 134 ); 132 135 133 $r = wp_parse_args( $args, $defaults ); 136 $r = bp_parse_args( 137 $args, 138 $defaults 139 ); 134 140 135 141 // If we don't have the required info we need, don't create this nav item. … … 218 224 ); 219 225 220 $r = wp_parse_args( $args, $defaults ); 226 $r = bp_parse_args( 227 $args, 228 $defaults 229 ); 221 230 222 231 // If we don't have the required info we need, don't register this screen function. … … 315 324 ); 316 325 317 $r = wp_parse_args( $args, $defaults ); 326 $r = bp_parse_args( 327 $args, 328 $defaults 329 ); 318 330 319 331 // This is specific to Members - it's not available in Groups. … … 530 542 $bp = buddypress(); 531 543 532 $r = wp_parse_args( $args, array( 533 'name' => false, // Display name for the nav item. 534 'slug' => false, // URL slug for the nav item. 535 'parent_slug' => false, // URL slug of the parent nav item. 536 'parent_url' => false, // URL of the parent item. 537 'item_css_id' => false, // The CSS ID to apply to the HTML of the nav item. 538 'user_has_access' => true, // Can the logged in user see this nav item? 539 'no_access_url' => '', 540 'site_admin_only' => false, // Can only site admins see this nav item? 541 'position' => 90, // Index of where this nav item should be positioned. 542 'screen_function' => false, // The name of the function to run when clicked. 543 'link' => '', // The link for the subnav item; optional, not usually required. 544 'show_in_admin_bar' => false, // Show the Manage link in the current group's "Edit" Admin Bar menu. 545 ) ); 544 $r = bp_parse_args( 545 $args, 546 array( 547 'name' => false, // Display name for the nav item. 548 'slug' => false, // URL slug for the nav item. 549 'parent_slug' => false, // URL slug of the parent nav item. 550 'parent_url' => false, // URL of the parent item. 551 'item_css_id' => false, // The CSS ID to apply to the HTML of the nav item. 552 'user_has_access' => true, // Can the logged in user see this nav item? 553 'no_access_url' => '', 554 'site_admin_only' => false, // Can only site admins see this nav item? 555 'position' => 90, // Index of where this nav item should be positioned. 556 'screen_function' => false, // The name of the function to run when clicked. 557 'link' => '', // The link for the subnav item; optional, not usually required. 558 'show_in_admin_bar' => false, // Show the Manage link in the current group's "Edit" Admin Bar menu. 559 ) 560 ); 546 561 547 562 // If we don't have the required info we need, don't create this subnav item. … … 626 641 $bp = buddypress(); 627 642 628 $r = wp_parse_args( $args, array( 629 'slug' => false, // URL slug for the screen. 630 'parent_slug' => false, // URL slug of the parent screen. 631 'user_has_access' => true, // Can the user visit this screen? 632 'no_access_url' => '', 633 'site_admin_only' => false, // Can only site admins visit this screen? 634 'screen_function' => false, // The name of the function to run when clicked. 635 ) ); 643 $r = bp_parse_args( 644 $args, 645 array( 646 'slug' => false, // URL slug for the screen. 647 'parent_slug' => false, // URL slug of the parent screen. 648 'user_has_access' => true, // Can the user visit this screen? 649 'no_access_url' => '', 650 'site_admin_only' => false, // Can only site admins visit this screen? 651 'screen_function' => false, // The name of the function to run when clicked. 652 ) 653 ); 636 654 637 655 /*
Note: See TracChangeset
for help on using the changeset viewer.