Changeset 9804
- Timestamp:
- 04/25/2015 08:37:51 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-members/bp-members-template.php
r9803 r9804 1437 1437 function bp_get_loggedin_user_avatar( $args = '' ) { 1438 1438 1439 $defaults = array( 1440 'type' => 'thumb', 1441 'width' => false, 1442 'height' => false, 1443 'html' => true, 1444 'alt' => sprintf( __( 'Profile picture of %s', 'buddypress' ), bp_get_loggedin_user_fullname() ) 1445 ); 1446 1447 $r = wp_parse_args( $args, $defaults ); 1448 extract( $r, EXTR_SKIP ); 1439 $r = wp_parse_args( $args, array( 1440 'item_id' => bp_loggedin_user_id(), 1441 'type' => 'thumb', 1442 'width' => false, 1443 'height' => false, 1444 'html' => true, 1445 'alt' => sprintf( __( 'Profile picture of %s', 'buddypress' ), bp_get_loggedin_user_fullname() ) 1446 ) ); 1449 1447 1450 1448 /** … … 1455 1453 * @param string $value User avatar string. 1456 1454 */ 1457 return apply_filters( 'bp_get_loggedin_user_avatar', bp_core_fetch_avatar( array( 'item_id' => bp_loggedin_user_id(), 'type' => $type, 'width' => $width, 'height' => $height, 'html' => $html, 'alt' => $alt ) ));1455 return apply_filters( 'bp_get_loggedin_user_avatar', bp_core_fetch_avatar( $r ), $r, $args ); 1458 1456 } 1459 1457 … … 1486 1484 function bp_get_displayed_user_avatar( $args = '' ) { 1487 1485 1488 $defaults = array( 1489 'type' => 'thumb', 1490 'width' => false, 1491 'height' => false, 1492 'html' => true, 1493 'alt' => sprintf( __( 'Profile picture of %s', 'buddypress' ), bp_get_displayed_user_fullname() ) 1494 ); 1495 1496 $r = wp_parse_args( $args, $defaults ); 1497 extract( $r, EXTR_SKIP ); 1486 $r = wp_parse_args( $args, array( 1487 'item_id' => bp_displayed_user_id(), 1488 'type' => 'thumb', 1489 'width' => false, 1490 'height' => false, 1491 'html' => true, 1492 'alt' => sprintf( __( 'Profile picture of %s', 'buddypress' ), bp_get_displayed_user_fullname() ) 1493 ) ); 1498 1494 1499 1495 /** … … 1504 1500 * @param string $value User avatar string. 1505 1501 */ 1506 return apply_filters( 'bp_get_displayed_user_avatar', bp_core_fetch_avatar( array( 'item_id' => bp_displayed_user_id(), 'type' => $type, 'width' => $width, 'height' => $height, 'html' => $html, 'alt' => $alt ) ));1502 return apply_filters( 'bp_get_displayed_user_avatar', bp_core_fetch_avatar( $r ), $r, $args ); 1507 1503 } 1508 1504
Note: See TracChangeset
for help on using the changeset viewer.