Skip to:
Content

bbPress.org


Ignore:
Timestamp:
06/14/2012 03:00:13 AM (14 years ago)
Author:
johnjamesjacoby
Message:

Add deprecated filters back in, to new section at the bottom of bbp-core-filters.php.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/plugin/bbp-includes/bbp-core-filters.php

    r3858 r3961  
    1818 *  - Admin: More in {@link BBP_Admin::setup_actions()} in
    1919 *            bbp-admin/bbp-admin.php
    20  * 
     20 *
    2121 * @see bbp-core-actions.php
    2222 */
     
    208208 * @since bbPress (r3758)
    209209 * @param array $query_vars
    210  * @return array 
     210 * @return array
    211211 */
    212212function bbp_request( $query_vars = array() ) {
     
    248248}
    249249
     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 */
     268function _bbp_has_forums_query( $args = array() ) {
     269    return apply_filters( 'bbp_has_forums_query', $args );
     270}
     271add_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 */
     280function _bbp_has_topics_query( $args = array() ) {
     281    return apply_filters( 'bbp_has_topics_query', $args );
     282}
     283add_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 */
     292function _bbp_has_replies_query( $args = array() ) {
     293    return apply_filters( 'bbp_has_replies_query', $args );
     294}
     295add_filter( 'bbp_after_has_replies_parse_args', '_bbp_has_replies_query' );
     296
    250297?>
Note: See TracChangeset for help on using the changeset viewer.