Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/17/2014 01:07:32 AM (12 years ago)
Author:
boonebgorges
Message:

Whitespace and codestyling in bp-activity

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-activity/bp-activity-functions.php

    r7905 r7906  
    899899function bp_activity_get( $args = '' ) {
    900900        $defaults = array(
    901                 'max'              => false,        // Maximum number of results to return
    902                 'page'             => 1,            // page 1 without a per_page will result in no pagination.
    903                 'per_page'         => false,        // results per page
    904                 'sort'             => 'DESC',       // sort ASC or DESC
    905                 'display_comments' => false,        // false for no comments. 'stream' for within stream display, 'threaded' for below each activity item
    906 
    907                 'search_terms'     => false,        // Pass search terms as a string
    908                 'meta_query'       => false,        // Filter by activity meta. See WP_Meta_Query for format
    909                 'show_hidden'      => false,        // Show activity items that are hidden site-wide?
    910                 'exclude'          => false,        // Comma-separated list of activity IDs to exclude
    911                 'in'               => false,        // Comma-separated list or array of activity IDs to which you want to limit the query
    912                 'spam'             => 'ham_only',   // 'ham_only' (default), 'spam_only' or 'all'.
     901                'max'               => false,        // Maximum number of results to return
     902                'page'              => 1,            // page 1 without a per_page will result in no pagination.
     903                'per_page'          => false,        // results per page
     904                'sort'              => 'DESC',       // sort ASC or DESC
     905                'display_comments'  => false,        // false for no comments. 'stream' for within stream display, 'threaded' for below each activity item
     906
     907                'search_terms'      => false,        // Pass search terms as a string
     908                'meta_query'        => false,        // Filter by activity meta. See WP_Meta_Query for format
     909                'show_hidden'       => false,        // Show activity items that are hidden site-wide?
     910                'exclude'           => false,        // Comma-separated list of activity IDs to exclude
     911                'in'                => false,        // Comma-separated list or array of activity IDs to which you want to limit the query
     912                'spam'              => 'ham_only',   // 'ham_only' (default), 'spam_only' or 'all'.
    913913                'update_meta_cache' => true,
    914914
     
    932932                if ( !$activity = wp_cache_get( 'bp_activity_sitewide_front', 'bp' ) ) {
    933933                        $args = array(
    934                                 'page'             => $page,
    935                                 'per_page'         => $per_page,
    936                                 'max'              => $max,
    937                                 'sort'             => $sort,
    938                                 'search_terms'     => $search_terms,
    939                                 'meta_query'       => $meta_query,
    940                                 'filter'           => $filter,
    941                                 'display_comments' => $display_comments,
    942                                 'show_hidden'      => $show_hidden,
    943                                 'spam'             => $spam,
     934                                'page'              => $page,
     935                                'per_page'          => $per_page,
     936                                'max'               => $max,
     937                                'sort'              => $sort,
     938                                'search_terms'      => $search_terms,
     939                                'meta_query'        => $meta_query,
     940                                'filter'            => $filter,
     941                                'display_comments'  => $display_comments,
     942                                'show_hidden'       => $show_hidden,
     943                                'spam'              => $spam,
    944944                                'update_meta_cache' => $update_meta_cache,
    945945                        );
     
    989989function bp_activity_get_specific( $args = '' ) {
    990990        $defaults = array(
    991                 'activity_ids'     => false,       // A single activity_id or array of IDs.
    992                 'display_comments' => false,       // true or false to display threaded comments for these specific activity items
    993                 'max'              => false,       // Maximum number of results to return
    994                 'page'             => 1,           // page 1 without a per_page will result in no pagination.
    995                 'per_page'         => false,       // results per page
    996                 'show_hidden'      => true,        // When fetching specific items, show all
    997                 'sort'             => 'DESC',      // sort ASC or DESC
    998                 'spam'             => 'ham_only',  // Retrieve items marked as spam
     991                'activity_ids'      => false,       // A single activity_id or array of IDs.
     992                'display_comments'  => false,       // true or false to display threaded comments for these specific activity items
     993                'max'               => false,       // Maximum number of results to return
     994                'page'              => 1,           // page 1 without a per_page will result in no pagination.
     995                'per_page'          => false,       // results per page
     996                'show_hidden'       => true,        // When fetching specific items, show all
     997                'sort'              => 'DESC',      // sort ASC or DESC
     998                'spam'              => 'ham_only',  // Retrieve items marked as spam
    999999                'update_meta_cache' => true,
    10001000        );
     
    10031003
    10041004        $get_args = array(
    1005                 'page'             => $page,
    1006                 'per_page'         => $per_page,
    1007                 'max'              => $max,
    1008                 'sort'             => $sort,
    1009                 'display_comments' => $display_comments,
    1010                 'show_hidden'      => $show_hidden,
    1011                 'in'               => $activity_ids,
    1012                 'spam'             => $spam,
     1005                'page'              => $page,
     1006                'per_page'          => $per_page,
     1007                'max'               => $max,
     1008                'sort'              => $sort,
     1009                'display_comments'  => $display_comments,
     1010                'show_hidden'       => $show_hidden,
     1011                'in'                => $activity_ids,
     1012                'spam'              => $spam,
    10131013                'update_meta_cache' => $update_meta_cache,
    10141014        );
Note: See TracChangeset for help on using the changeset viewer.