Changeset 10899 for trunk/src/bp-core/classes/class-bp-core-nav.php
- Timestamp:
- 06/23/2016 06:31:58 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/classes/class-bp-core-nav.php
r10873 r10899 5 5 * @package BuddyPress 6 6 * @subpackage Core 7 * @since 7 * @since 2.6.0 8 8 */ 9 9 … … 57 57 * @since 2.6.0 58 58 * 59 * @param 59 * @param string $key The requested nav slug. 60 60 * @return bool True if the nav item is set, false otherwise. 61 61 */ … … 69 69 * @since 2.6.0 70 70 * 71 * @param 71 * @param string $key The requested nav slug. 72 72 * @return mixed The value corresponding to the requested nav item. 73 73 */ … … 85 85 * @since 2.6.0 86 86 * 87 * @param string$key The requested nav slug.88 * @param mixed$value The value of the nav item.87 * @param string $key The requested nav slug. 88 * @param mixed $value The value of the nav item. 89 89 */ 90 90 public function __set( $key, $value ) { … … 101 101 * @since 2.6.0 102 102 * 103 * @param 103 * @param string $key The nav item slug to get. Optional. 104 104 * @return mixed An array of nav item, a single nav item, or null if none found. 105 105 */ … … 321 321 * @since 2.6.0 322 322 * 323 * @param 324 * @param 323 * @param array $args Filters to select the specific primary items. See wp_list_filter(). 324 * @param bool $sort True to sort the nav items. False otherwise. 325 325 * @return array The list of primary objects nav 326 326 */ … … 328 328 $params = wp_parse_args( $args, array( 'primary' => true ) ); 329 329 330 // This parameter is not overridable 330 // This parameter is not overridable. 331 331 if ( empty( $params['primary'] ) ) { 332 332 return false; … … 351 351 * @since 2.6.0 352 352 * 353 * @param 354 * @param 353 * @param array $args Filters to select the specific secondary items. See wp_list_filter(). 354 * @param bool $sort True to sort the nav items. False otherwise. 355 355 * @return array The list of secondary objects nav 356 356 */ … … 358 358 $params = wp_parse_args( $args, array( 'parent_slug' => '' ) ); 359 359 360 // No need to search children if the parent is not set 360 // No need to search children if the parent is not set. 361 361 if ( empty( $params['parent_slug'] ) && empty( $params['secondary'] ) ) { 362 362 return false; … … 388 388 if ( $primary_nav_items ) { 389 389 foreach( $primary_nav_items as $key_nav => $primary_nav ) { 390 // Try to get the children 390 // Try to get the children. 391 391 $children = $this->get_secondary( array( 'parent_slug' => $primary_nav->slug, 'user_has_access' => true ) ); 392 392
Note: See TracChangeset
for help on using the changeset viewer.