Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
07/12/2015 12:49:36 AM (10 years ago)
Author:
tw2113
Message:

First pass at BP-Core docs cleanup.

See #6398.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/bp-core-template.php

    r9989 r10012  
    2626 * @uses bp_get_user_nav() Renders the navigation for a profile of a currently
    2727 *       viewed user.
     28 *
     29 * @param string $parent_slug
     30 *
     31 * @return string
    2832 */
    2933function bp_get_options_nav( $parent_slug = '' ) {
     
    111115 * @since BuddyPress (2.0.0)
    112116 *
     117 * @param string $component
     118 *
    113119 * @return string
    114120 */
     
    335341 * @since BuddyPress (1.1.0)
    336342 *
    337  * @param int  $time         The UNIX timestamp to be formatted.
     343 * @param int|string  $time         The UNIX timestamp to be formatted.
    338344 * @param bool $exclude_time Optional. True to return only the month + day, false
    339345 *                           to return month, day, and time. Default: false.
     
    702708 * @see bp_get_button()
    703709 *
    704  * @param array $args See {@link BP_Button}.
     710 * @param array|string $args See {@link BP_Button}.
    705711 */
    706712function bp_button( $args = '' ) {
     
    712718     * @see BP_Button for a description of arguments and return value.
    713719     *
    714      * @param array $args See {@link BP_Button}.
     720     * @param array|string $args See {@link BP_Button}.
    715721     * @return string HTML markup for the button.
    716722     */
     
    11081114 * WordPress theme without coping the functions from functions.php.
    11091115 *
    1110  * @param string $object
     1116 * @param string|bool $object
    11111117 * @return string The AJAX querystring.
    11121118 */
     
    11781184 * Return the name of the current item.
    11791185 *
    1180  * @return unknown
     1186 * @return string|bool
    11811187 */
    11821188function bp_current_item() {
     
    14231429         * @since BuddyPress (1.5.0)
    14241430         *
    1425          * @param string BP_SEARCH_SLUG The search slug. Default "search".
     1431         * @const string BP_SEARCH_SLUG The search slug. Default "search".
    14261432         */
    14271433        return apply_filters( 'bp_get_search_slug', BP_SEARCH_SLUG );
     
    15971603 *
    15981604 * @param string $action_variable The action_variable being tested against.
    1599  * @param int $position Optional. The array key you're testing against. If you
     1605 * @param int|bool $position Optional. The array key you're testing against. If you
    16001606 *        don't provide a $position, the function will return true if the
    16011607 *        $action_variable is found *anywhere* in the action variables array.
     
    17551761 * already deprecated functions.
    17561762 *
     1763 * @param string $component_name
     1764 *
    17571765 * @return bool True if root component, else false.
    17581766 */
     
    17931801 * @since BuddyPress (1.5.0)
    17941802 *
    1795  * @global $current_blog WordPress global for the current blog.
     1803 * @global int $current_blog WordPress global for the current blog.
    17961804 *
    17971805 * @param string $component Optional. Name of the component to check for.
     
    26922700 * Not currently used by BuddyPress.
    26932701 *
     2702 * @param string $component Current component to check for.
     2703 * @param string $callback  Callback to invoke.
     2704 *
    26942705 * @return bool
    26952706 */
     
    27242735/**
    27252736 * 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.
    27322737 */
    27332738function bp_the_body_class() {
    27342739    echo bp_get_the_body_class();
    27352740}
     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     */
    27362750    function bp_get_the_body_class( $wp_classes = array(), $custom_classes = false ) {
    27372751
Note: See TracChangeset for help on using the changeset viewer.