Changeset 10375
- Timestamp:
- 11/23/2015 05:51:55 AM (9 years ago)
- Location:
- trunk/src/bp-activity
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-activity/bp-activity-actions.php
r10253 r10375 106 106 * @since 1.2.2 107 107 * 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. 109 109 */ 110 110 if ( ! $redirect = apply_filters_ref_array( 'bp_activity_permalink_redirect_url', array( $redirect, &$activity ) ) ) { -
trunk/src/bp-activity/bp-activity-admin.php
r10359 r10375 361 361 foreach ( $activity_ids as $activity_id ) { 362 362 // @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 ) ) 364 364 // continue; 365 366 365 // Get the activity from the database. 367 366 $activity = new BP_Activity_Activity( $activity_id ); … … 566 565 * @since 1.6.0 567 566 * 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. 569 568 */ 570 569 do_action_ref_array( 'bp_activity_admin_edit_after', array( &$activity, $error ) ); … … 1651 1650 1652 1651 <?php 1653 // Activity permalink 1652 // Activity permalink. 1654 1653 $activity_permalink = ''; 1655 1654 if ( ! $item['is_spam'] ) { -
trunk/src/bp-activity/bp-activity-akismet.php
r10261 r10375 255 255 * @since 1.6.0 256 256 * 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. 258 258 */ 259 259 return apply_filters( 'bp_akismet_get_activity_types', array( 'activity_comment', 'activity_update' ) ); -
trunk/src/bp-activity/bp-activity-filters.php
r10253 r10375 10 10 defined( 'ABSPATH' ) || exit; 11 11 12 /* *Filters *******************************************************************/12 /* Filters *******************************************************************/ 13 13 14 14 // Apply WordPress defined filters. … … 99 99 add_filter( 'bp_get_total_mention_count_for_user', 'bp_core_number_format' ); 100 100 101 /* *Actions *******************************************************************/101 /* Actions *******************************************************************/ 102 102 103 103 // At-name filter. -
trunk/src/bp-activity/bp-activity-functions.php
r10270 r10375 1427 1427 1428 1428 $r = bp_parse_args( $args, array( 1429 'max' => false, // Maximum number of results to return 1429 'max' => false, // Maximum number of results to return. 1430 1430 '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. 1432 1432 'per_page' => false, // results per page 1433 1433 'sort' => 'DESC', // sort ASC or DESC 1434 'display_comments' => false, // false for no comments. 'stream' for within stream display, 'threaded' for below each activity item1434 'display_comments' => false, // False for no comments. 'stream' for within stream display, 'threaded' for below each activity item. 1435 1435 1436 1436 'search_terms' => false, // Pass search terms as a string 1437 1437 '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. 1439 1439 'filter_query' => false, 1440 1440 'show_hidden' => false, // Show activity items that are hidden site-wide? -
trunk/src/bp-activity/classes/class-bp-activity-activity.php
r10253 r10375 480 480 * @since 1.6.0 481 481 * 482 * @param array Array of indexes in preferred order.482 * @param array $value Array of indexes in preferred order. 483 483 */ 484 484 $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.