Ticket #8227: 8227.patch
File 8227.patch, 3.9 KB (added by , 4 years ago) |
---|
-
src/bp-core/classes/class-bp-recursive-query.php
84 84 if ( 'relation' === $key ) { 85 85 $relation = $query['relation']; 86 86 } elseif ( is_array( $clause ) ) { 87 // This is a first-order clause 87 // This is a first-order clause. 88 88 if ( $this->is_first_order_clause( $clause ) ) { 89 89 $clause_sql = $this->get_sql_for_clause( $clause, $query ); 90 90 … … 98 98 } 99 99 100 100 $sql_chunks['join'] = array_merge( $sql_chunks['join'], $clause_sql['join'] ); 101 // This is a subquery 101 // This is a subquery. 102 102 } else { 103 103 $clause_sql = $this->get_sql_for_query( $clause, $depth + 1 ); 104 104 … … 108 108 } 109 109 } 110 110 111 // Filter empties 111 // Filter empties. 112 112 $sql_chunks['join'] = array_filter( $sql_chunks['join'] ); 113 113 $sql_chunks['where'] = array_filter( $sql_chunks['where'] ); 114 114 -
src/bp-core/classes/class-bp-user-query.php
183 183 */ 184 184 do_action_ref_array( 'bp_pre_user_query_construct', array( &$this ) ); 185 185 186 // Get user ids 186 // Get user ids. 187 187 // If the user_ids param is present, we skip the query. 188 188 if ( false !== $this->query_vars['user_ids'] ) { 189 189 $this->user_ids = wp_parse_id_list( $this->query_vars['user_ids'] ); -
src/bp-core/deprecated/1.2.php
22 22 _deprecated_function( __FUNCTION__, '1.2', 'bp_activity_get()' ); 23 23 24 24 $defaults = array( 25 'max' => false, // Maximum number of results to return26 'page' => 1, // page 1 without a per_page will result in no pagination.27 'per_page' => false, // results per page28 'sort' => 'DESC', // sort ASC or DESC29 'display_comments' => false, // false for no comments. 'stream' for within stream display, 'threaded' for below each activity item25 'max' => false, // Maximum number of results to return. 26 'page' => 1, // Page 1 without a per_page will result in no pagination. 27 'per_page' => false, // Results per page. 28 'sort' => 'DESC', // Sort ASC or DESC. 29 'display_comments' => false, // False for no comments. 'stream' for within stream display, 'threaded' for below each activity item. 30 30 31 'search_terms' => false, // Pass search terms as a string32 'show_hidden' => false,// Show activity items that are hidden site-wide?31 'search_terms' => false, // Pass search terms as a string. 32 'show_hidden' => false, // Show activity items that are hidden site-wide? 33 33 34 34 /** 35 35 * Pass filters as an array: 36 36 * array( 37 * 'user_id' => false, // user_id to filter on38 * 'object' => false, // object to filter on e.g. groups, profile, status, friends39 * 'action' => false, // action to filter on e.g. new_wire_post, new_forum_post, profile_updated40 * 'primary_id' => false, // object ID to filter on e.g. a group_id or forum_id or blog_id etc.41 * 'secondary_id' => false, // secondary object ID to filter on e.g. a post_id37 * 'user_id' => false, // user_id to filter on. 38 * 'object' => false, // Object to filter on e.g. groups, profile, status, friends. 39 * 'action' => false, // Action to filter on e.g. new_wire_post, new_forum_post, profile_updated. 40 * 'primary_id' => false, // Object ID to filter on e.g. a group_id or forum_id or blog_id etc. 41 * 'secondary_id' => false, // Secondary object ID to filter on e.g. a post_id. 42 42 * ); 43 43 */ 44 44 'filter' => array()