Changeset 3961 for branches/plugin/bbp-includes/bbp-core-filters.php
- Timestamp:
- 06/14/2012 03:00:13 AM (14 years ago)
- File:
-
- 1 edited
-
branches/plugin/bbp-includes/bbp-core-filters.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/plugin/bbp-includes/bbp-core-filters.php
r3858 r3961 18 18 * - Admin: More in {@link BBP_Admin::setup_actions()} in 19 19 * bbp-admin/bbp-admin.php 20 * 20 * 21 21 * @see bbp-core-actions.php 22 22 */ … … 208 208 * @since bbPress (r3758) 209 209 * @param array $query_vars 210 * @return array 210 * @return array 211 211 */ 212 212 function bbp_request( $query_vars = array() ) { … … 248 248 } 249 249 250 /** Deprecated ****************************************************************/ 251 252 /** 253 * The following filters are deprecated. 254 * 255 * These filters were most likely replaced by bbp_parse_args(), which includes 256 * both passive and aggressive filters anywhere parse_args is used to compare 257 * default arguments to passed arguments, without needing to litter the 258 * codebase with _before_ and _after_ filters everywhere. 259 */ 260 261 /** 262 * Deprecated forums query filter 263 * 264 * @since bbPress (r3961) 265 * @param type $args 266 * @return type 267 */ 268 function _bbp_has_forums_query( $args = array() ) { 269 return apply_filters( 'bbp_has_forums_query', $args ); 270 } 271 add_filter( 'bbp_after_has_forums_parse_args', '_bbp_has_forums_query' ); 272 273 /** 274 * Deprecated topics query filter 275 * 276 * @since bbPress (r3961) 277 * @param type $args 278 * @return type 279 */ 280 function _bbp_has_topics_query( $args = array() ) { 281 return apply_filters( 'bbp_has_topics_query', $args ); 282 } 283 add_filter( 'bbp_after_has_topics_parse_args', '_bbp_has_topics_query' ); 284 285 /** 286 * Deprecated replies query filter 287 * 288 * @since bbPress (r3961) 289 * @param type $args 290 * @return type 291 */ 292 function _bbp_has_replies_query( $args = array() ) { 293 return apply_filters( 'bbp_has_replies_query', $args ); 294 } 295 add_filter( 'bbp_after_has_replies_parse_args', '_bbp_has_replies_query' ); 296 250 297 ?>
Note: See TracChangeset
for help on using the changeset viewer.