Changeset 9026 for trunk/src/bp-groups/bp-groups-filters.php
- Timestamp:
- 09/17/2014 12:39:27 AM (11 years ago)
- File:
-
- 1 edited
-
trunk/src/bp-groups/bp-groups-filters.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-groups/bp-groups-filters.php
r8458 r9026 111 111 } 112 112 113 /** Group forums **************************************************************/114 115 /** 116 * Only filter the forum SQL on group pages or on the forums directory113 /** Legacy group forums (bbPress 1.x) *****************************************/ 114 115 /** 116 * Filter bbPress query SQL when on group pages or on forums directory. 117 117 */ 118 118 function groups_add_forum_privacy_sql() { … … 123 123 add_filter( 'bbpress_init', 'groups_add_forum_privacy_sql' ); 124 124 125 /** 126 * Add fields to bbPress query for group-specific data. 127 * 128 * @param string $sql 129 * @return string 130 */ 125 131 function groups_add_forum_fields_sql( $sql = '' ) { 126 132 $sql = 't.*, g.id as object_id, g.name as object_name, g.slug as object_slug'; … … 128 134 } 129 135 136 /** 137 * Add JOINed tables to bbPress query for group-specific data. 138 * 139 * @param string $sql 140 * @return string 141 */ 130 142 function groups_add_forum_tables_sql( $sql = '' ) { 131 143 global $bp; … … 136 148 } 137 149 150 /** 151 * Add WHERE clauses to bbPress query for group-specific data and access protection. 152 * 153 * @param string $sql 154 * @return string 155 */ 138 156 function groups_add_forum_where_sql( $sql = '' ) { 139 157 global $bp; … … 179 197 } 180 198 199 /** 200 * Modify bbPress caps for bp-forums. 201 * 202 * @param bool $value 203 * @param string $cap 204 * @param array $args 205 * @return bool 206 */ 181 207 function groups_filter_bbpress_caps( $value, $cap, $args ) { 182 208 global $bp; … … 196 222 197 223 /** 198 * Amends the forum directory's "last active" bbPress SQL query to stop it fetching 199 * information we aren't going to use. This speeds up the query. 224 * Amends the forum directory's "last active" bbPress SQL query to stop it fetching information we aren't going to use. 225 * 226 * This speeds up the query. 227 * 228 * @since BuddyPress (1.5.0) 200 229 * 201 230 * @see BB_Query::_filter_sql() 202 * @since BuddyPress (1.5)203 231 */ 204 232 function groups_filter_forums_root_page_sql( $sql ) {
Note: See TracChangeset
for help on using the changeset viewer.