Ticket #5306: 5306.template_loops.01.patch
| File 5306.template_loops.01.patch, 4.1 KB (added by , 12 years ago) |
|---|
-
bp-activity/bp-activity-template.php
function bp_has_activities( $args = '' ) { 555 555 'update_meta_cache' => true, 556 556 ); 557 557 558 $r = wp_parse_args( $args, $defaults);558 $r = bp_parse_args( $args, $defaults, 'has_activities' ); 559 559 extract( $r ); 560 560 561 561 // Translate various values for 'display_comments' -
bp-blogs/bp-blogs-template.php
function bp_has_blogs( $args = '' ) { 377 377 'update_meta_cache' => true, 378 378 ); 379 379 380 $r = wp_parse_args( $args, $defaults);380 $r = bp_parse_args( $args, $defaults, 'has_blogs' ); 381 381 extract( $r ); 382 382 383 383 if ( is_null( $search_terms ) ) { -
bp-forums/bp-forums-template.php
function bp_has_forum_topics( $args = '' ) { 480 480 'do_stickies' => $do_stickies 481 481 ); 482 482 483 $r = wp_parse_args( $args, $defaults);483 $r = bp_parse_args( $args, $defaults, 'has_forum_topics' ); 484 484 extract( $r ); 485 485 486 486 // If we're viewing a tag URL in the directory, let's override the type and … … function bp_has_forum_topic_posts( $args = '' ) { 1844 1844 'order' => 'ASC' 1845 1845 ); 1846 1846 1847 $r = wp_parse_args( $args, $defaults);1847 $r = bp_parse_args( $args, $defaults, 'has_forum_topic_posts' ); 1848 1848 extract( $r, EXTR_SKIP ); 1849 1849 1850 1850 if ( empty( $topic_id ) && bp_is_groups_component() && bp_is_current_action( 'forum' ) && bp_is_action_variable( 'topic', 0 ) && bp_action_variable( 1 ) ) -
bp-groups/bp-groups-template.php
function bp_has_groups( $args = '' ) { 333 333 'update_meta_cache' => true, 334 334 ); 335 335 336 $r = wp_parse_args( $args, $defaults);336 $r = bp_parse_args( $args, $defaults, 'has_groups' ); 337 337 338 338 if ( empty( $r['search_terms'] ) ) { 339 339 if ( isset( $_REQUEST['group-filter-box'] ) && !empty( $_REQUEST['group-filter-box'] ) ) -
bp-members/bp-members-template.php
function bp_has_members( $args = '' ) { 300 300 'populate_extras' => true // Fetch usermeta? Friend count, last active etc. 301 301 ); 302 302 303 $r = wp_parse_args( $args, $defaults);303 $r = bp_parse_args( $args, $defaults, 'has_members' ); 304 304 extract( $r ); 305 305 306 306 // Pass a filter if ?s= is set. -
bp-notifications/bp-notifications-template.php
function bp_has_notifications( $args = '' ) { 478 478 } 479 479 480 480 // Parse the args 481 $r = wp_parse_args( $args, array(481 $r = bp_parse_args( $args, array( 482 482 'user_id' => $user_id, 483 483 'is_new' => $is_new, 484 484 'page' => 1, … … function bp_has_notifications( $args = '' ) { 486 486 'max' => false, 487 487 'search_terms' => isset( $_REQUEST['s'] ) ? stripslashes( $_REQUEST['s'] ) : '', 488 488 'page_arg' => 'npage', 489 ) );489 ), 'has_notifications' ); 490 490 491 491 // Get the notifications 492 492 $query_loop = new BP_Notifications_Template( $r ); -
bp-xprofile/bp-xprofile-template.php
function bp_has_profile( $args = '' ) { 179 179 'update_meta_cache' => true, 180 180 ); 181 181 182 $r = wp_parse_args( $args, $defaults);182 $r = bp_parse_args( $args, $defaults, 'has_profile' ); 183 183 extract( $r, EXTR_SKIP ); 184 184 185 185 $profile_template = new BP_XProfile_Data_Template( $user_id, $profile_group_id, $hide_empty_groups, $fetch_fields, $fetch_field_data, $exclude_groups, $exclude_fields, $hide_empty_fields, $fetch_visibility_level, $update_meta_cache );