Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
03/18/2014 02:09:33 AM (12 years ago)
Author:
r-a-y
Message:

Replace wp_parse_args() with bp_parse_args() for all template loops.

bp_parse_args() allows developers to filter the template arguments
before the loop is rendered. This will allow for greater
flexibility to manipulate template loops in plugins.

See #5306

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-forums/bp-forums-template.php

    r7554 r8142  
    481481        );
    482482
    483         $r = wp_parse_args( $args, $defaults );
     483        $r = bp_parse_args( $args, $defaults, 'has_forum_topics' );
    484484        extract( $r );
    485485
     
    18451845        );
    18461846
    1847         $r = wp_parse_args( $args, $defaults );
     1847        $r = bp_parse_args( $args, $defaults, 'has_forum_topic_posts' );
    18481848        extract( $r, EXTR_SKIP );
    18491849
Note: See TracChangeset for help on using the changeset viewer.