Changeset 8447
- Timestamp:
- 05/24/2014 12:13:51 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-blogs/bp-blogs-template.php
r8408 r8447 341 341 * @type array $include_blog_ids Array of blog IDs to limit results to. 342 342 * @type string $sort 'ASC' or 'DESC'. Default: 'DESC'. 343 * @type string $search_terms Limit results by a search term. Default: null. 343 * @type string $search_terms Limit results by a search term. Default: the 344 * value of $_REQUEST['s'], if present. 344 345 * @type int $user_id The ID of the user whose blogs should be retrieved. 345 346 * When viewing a user profile page, 'user_id' defaults to the ID of … … 358 359 $type = 'active'; 359 360 $user_id = 0; 360 $search_terms = null;361 361 362 362 // User filtering 363 363 if ( bp_displayed_user_id() ) 364 364 $user_id = bp_displayed_user_id(); 365 366 if ( isset( $_REQUEST['s'] ) && !empty( $_REQUEST['s'] ) ) { 367 $search_terms = $_REQUEST['s']; 368 } else { 369 $search_terms = false; 370 } 365 371 366 372 $defaults = array( … … 380 386 $r = bp_parse_args( $args, $defaults, 'has_blogs' ); 381 387 extract( $r ); 382 383 if ( is_null( $search_terms ) ) {384 if ( isset( $_REQUEST['s'] ) && !empty( $_REQUEST['s'] ) )385 $search_terms = $_REQUEST['s'];386 else387 $search_terms = false;388 }389 388 390 389 if ( $max ) {
Note: See TracChangeset
for help on using the changeset viewer.