Changeset 10012 for trunk/src/bp-core/bp-core-template.php
- Timestamp:
- 07/12/2015 12:49:36 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/bp-core-template.php
r9989 r10012 26 26 * @uses bp_get_user_nav() Renders the navigation for a profile of a currently 27 27 * viewed user. 28 * 29 * @param string $parent_slug 30 * 31 * @return string 28 32 */ 29 33 function bp_get_options_nav( $parent_slug = '' ) { … … 111 115 * @since BuddyPress (2.0.0) 112 116 * 117 * @param string $component 118 * 113 119 * @return string 114 120 */ … … 335 341 * @since BuddyPress (1.1.0) 336 342 * 337 * @param int $time The UNIX timestamp to be formatted.343 * @param int|string $time The UNIX timestamp to be formatted. 338 344 * @param bool $exclude_time Optional. True to return only the month + day, false 339 345 * to return month, day, and time. Default: false. … … 702 708 * @see bp_get_button() 703 709 * 704 * @param array $args See {@link BP_Button}.710 * @param array|string $args See {@link BP_Button}. 705 711 */ 706 712 function bp_button( $args = '' ) { … … 712 718 * @see BP_Button for a description of arguments and return value. 713 719 * 714 * @param array $args See {@link BP_Button}.720 * @param array|string $args See {@link BP_Button}. 715 721 * @return string HTML markup for the button. 716 722 */ … … 1108 1114 * WordPress theme without coping the functions from functions.php. 1109 1115 * 1110 * @param string $object1116 * @param string|bool $object 1111 1117 * @return string The AJAX querystring. 1112 1118 */ … … 1178 1184 * Return the name of the current item. 1179 1185 * 1180 * @return unknown1186 * @return string|bool 1181 1187 */ 1182 1188 function bp_current_item() { … … 1423 1429 * @since BuddyPress (1.5.0) 1424 1430 * 1425 * @ paramstring BP_SEARCH_SLUG The search slug. Default "search".1431 * @const string BP_SEARCH_SLUG The search slug. Default "search". 1426 1432 */ 1427 1433 return apply_filters( 'bp_get_search_slug', BP_SEARCH_SLUG ); … … 1597 1603 * 1598 1604 * @param string $action_variable The action_variable being tested against. 1599 * @param int $position Optional. The array key you're testing against. If you1605 * @param int|bool $position Optional. The array key you're testing against. If you 1600 1606 * don't provide a $position, the function will return true if the 1601 1607 * $action_variable is found *anywhere* in the action variables array. … … 1755 1761 * already deprecated functions. 1756 1762 * 1763 * @param string $component_name 1764 * 1757 1765 * @return bool True if root component, else false. 1758 1766 */ … … 1793 1801 * @since BuddyPress (1.5.0) 1794 1802 * 1795 * @global $current_blog WordPress global for the current blog.1803 * @global int $current_blog WordPress global for the current blog. 1796 1804 * 1797 1805 * @param string $component Optional. Name of the component to check for. … … 2692 2700 * Not currently used by BuddyPress. 2693 2701 * 2702 * @param string $component Current component to check for. 2703 * @param string $callback Callback to invoke. 2704 * 2694 2705 * @return bool 2695 2706 */ … … 2724 2735 /** 2725 2736 * Customize the body class, according to the currently displayed BP content. 2726 *2727 * Uses the above is_() functions to output a body class for each scenario.2728 *2729 * @param array $wp_classes The body classes coming from WP.2730 * @param array $custom_classes Classes that were passed to get_body_class().2731 * @return array $classes The BP-adjusted body classes.2732 2737 */ 2733 2738 function bp_the_body_class() { 2734 2739 echo bp_get_the_body_class(); 2735 2740 } 2741 /** 2742 * Customize the body class, according to the currently displayed BP content. 2743 * 2744 * Uses the above is_() functions to output a body class for each scenario. 2745 * 2746 * @param array $wp_classes The body classes coming from WP. 2747 * @param array|bool $custom_classes Classes that were passed to get_body_class(). 2748 * @return array $classes The BP-adjusted body classes. 2749 */ 2736 2750 function bp_get_the_body_class( $wp_classes = array(), $custom_classes = false ) { 2737 2751
Note: See TracChangeset
for help on using the changeset viewer.