Skip to:
Content

BuddyPress.org

Changeset 10375


Ignore:
Timestamp:
11/23/2015 05:51:55 AM (4 years ago)
Author:
tw2113
Message:

Misc docs fixes that were missed or added.

See #6396.

Location:
trunk/src/bp-activity
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-activity/bp-activity-actions.php

    r10253 r10375  
    106106     * @since 1.2.2
    107107     *
    108      * @param array Array with url to redirect to and activity related to the redirect.
     108     * @param array $value Array with url to redirect to and activity related to the redirect.
    109109     */
    110110    if ( ! $redirect = apply_filters_ref_array( 'bp_activity_permalink_redirect_url', array( $redirect, &$activity ) ) ) {
  • trunk/src/bp-activity/bp-activity-admin.php

    r10359 r10375  
    361361        foreach ( $activity_ids as $activity_id ) {
    362362            // @todo: Check the permissions on each
    363             //if ( ! current_user_can( 'bp_edit_activity', $activity_id ) )
     363            // if ( ! current_user_can( 'bp_edit_activity', $activity_id ) )
    364364            // continue;
    365 
    366365            // Get the activity from the database.
    367366            $activity = new BP_Activity_Activity( $activity_id );
     
    566565         * @since 1.6.0
    567566         *
    568          * @param array Array holding activity object and ID that holds error.
     567         * @param array $value Array holding activity object and ID that holds error.
    569568         */
    570569        do_action_ref_array( 'bp_activity_admin_edit_after', array( &$activity, $error ) );
     
    16511650
    16521651        <?php
    1653         // Activity permalink
     1652        // Activity permalink.
    16541653        $activity_permalink = '';
    16551654        if ( ! $item['is_spam'] ) {
  • trunk/src/bp-activity/bp-activity-akismet.php

    r10261 r10375  
    255255         * @since 1.6.0
    256256         *
    257          * @param array Array of default activity types for Akismet to check.
     257         * @param array $value Array of default activity types for Akismet to check.
    258258         */
    259259        return apply_filters( 'bp_akismet_get_activity_types', array( 'activity_comment', 'activity_update' ) );
  • trunk/src/bp-activity/bp-activity-filters.php

    r10253 r10375  
    1010defined( 'ABSPATH' ) || exit;
    1111
    12 /** Filters *******************************************************************/
     12/* Filters *******************************************************************/
    1313
    1414// Apply WordPress defined filters.
     
    9999add_filter( 'bp_get_total_mention_count_for_user',  'bp_core_number_format' );
    100100
    101 /** Actions *******************************************************************/
     101/* Actions *******************************************************************/
    102102
    103103// At-name filter.
  • trunk/src/bp-activity/bp-activity-functions.php

    r10270 r10375  
    14271427
    14281428    $r = bp_parse_args( $args, array(
    1429         'max'               => false,        // Maximum number of results to return
     1429        'max'               => false,        // Maximum number of results to return.
    14301430        'fields'            => 'all',
    1431         'page'              => 1,            // page 1 without a per_page will result in no pagination.
     1431        'page'              => 1,            // Page 1 without a per_page will result in no pagination.
    14321432        'per_page'          => false,        // results per page
    14331433        'sort'              => 'DESC',       // sort ASC or DESC
    1434         'display_comments'  => false,        // false for no comments. 'stream' for within stream display, 'threaded' for below each activity item
     1434        'display_comments'  => false,        // False for no comments. 'stream' for within stream display, 'threaded' for below each activity item.
    14351435
    14361436        'search_terms'      => false,        // Pass search terms as a string
    14371437        'meta_query'        => false,        // Filter by activity meta. See WP_Meta_Query for format
    1438         'date_query'        => false,        // Filter by date. See first parameter of WP_Date_Query for format
     1438        'date_query'        => false,        // Filter by date. See first parameter of WP_Date_Query for format.
    14391439        'filter_query'      => false,
    14401440        'show_hidden'       => false,        // Show activity items that are hidden site-wide?
  • trunk/src/bp-activity/classes/class-bp-activity-activity.php

    r10253 r10375  
    480480         * @since 1.6.0
    481481         *
    482          * @param array Array of indexes in preferred order.
     482         * @param array $value Array of indexes in preferred order.
    483483         */
    484484        $indexes = apply_filters( 'bp_activity_preferred_index_order', array( 'user_id', 'item_id', 'secondary_item_id', 'date_recorded', 'component', 'type', 'hide_sitewide', 'is_spam' ) );
Note: See TracChangeset for help on using the changeset viewer.