Skip to:
Content

bbPress.org

Changeset 4775


Ignore:
Timestamp:
02/19/2013 06:07:10 PM (13 years ago)
Author:
johnjamesjacoby
Message:

Pass $r instead of $args in ending filters. Ensures correct array of arguments is available to filters. These were skipped as part of #2056. Props alex-ye. Fixes #2218.

Location:
trunk/includes
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/common/functions.php

    r4735 r4775  
    579579    $statistics['hidden_reply_title'] = isset( $hidden_reply_title ) ? $hidden_reply_title : '';
    580580
    581     return apply_filters( 'bbp_get_statistics', $statistics, $args );
     581    return apply_filters( 'bbp_get_statistics', $statistics, $r );
    582582}
    583583
     
    633633
    634634    // Finally, return sanitized data or false
    635     return apply_filters( 'bbp_filter_anonymous_post_data', $retval, $args );
     635    return apply_filters( 'bbp_filter_anonymous_post_data', $retval, $r );
    636636}
    637637
  • trunk/includes/common/template-tags.php

    r4774 r4775  
    11121112    $login_url = site_url( $login_url, $r['context'] );
    11131113
    1114     echo apply_filters( 'bbp_wp_login_action', $login_url, $args );
     1114    echo apply_filters( 'bbp_wp_login_action', $login_url, $r );
    11151115}
    11161116
     
    14301430        }
    14311431
    1432         return apply_filters( 'bbp_get_dropdown', $retval, $args );
     1432        return apply_filters( 'bbp_get_dropdown', $retval, $r );
    14331433    }
    14341434
  • trunk/includes/forums/template-tags.php

    r4747 r4775  
    660660    $sub_forums = !empty( $r['post_parent'] ) ? $get_posts->query( $r ) : array();
    661661
    662     return (array) apply_filters( 'bbp_forum_get_subforums', $sub_forums, $args );
     662    return (array) apply_filters( 'bbp_forum_get_subforums', $sub_forums, $r );
    663663}
    664664
     
    19221922
    19231923        // Return filtered result
    1924         return apply_filters( 'bbp_get_single_forum_description', $retstr, $args );
     1924        return apply_filters( 'bbp_get_single_forum_description', $retstr, $r );
    19251925    }
    19261926
  • trunk/includes/replies/template-tags.php

    r4741 r4775  
    12511251        $author_role = sprintf( '%1$s<div class="%2$s">%3$s</div>%4$s', $r['before'], $r['class'], $role, $r['after'] );
    12521252
    1253         return apply_filters( 'bbp_get_reply_author_role', $author_role, $args );
     1253        return apply_filters( 'bbp_get_reply_author_role', $author_role, $r );
    12541254    }
    12551255
  • trunk/includes/topics/template-tags.php

    r4705 r4775  
    22642264        $links = implode( $r['sep'], array_filter( $r['links'] ) );
    22652265
    2266         return apply_filters( 'bbp_get_topic_admin_links', $r['before'] . $links . $r['after'], $args );
     2266        return apply_filters( 'bbp_get_topic_admin_links', $r['before'] . $links . $r['after'], $r );
    22672267    }
    22682268
  • trunk/includes/users/template-tags.php

    r4672 r4775  
    292292
    293293        // Filter and return
    294         return (string) apply_filters( 'bbp_get_user_nicename', $retval, $user_id, $args );
     294        return (string) apply_filters( 'bbp_get_user_nicename', $retval, $user_id, $r );
    295295    }
    296296
Note: See TracChangeset for help on using the changeset viewer.