Changeset 12636
- Timestamp:
- 04/29/2020 12:51:50 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-blogs/bp-blogs-template.php
r12587 r12636 303 303 * 304 304 * @since 2.4.0 Introduced `$title` argument. 305 * @since 6.0.0 Introduced the `$blog_id` & `$admin_user_id` arguments.305 * @since 6.0.0 Introduced the `$blog_id`, `$admin_user_id` and `html` arguments. 306 306 * 307 307 * @see bp_core_fetch_avatar() For a description of arguments and … … 321 321 * @type int $blog_id The blog ID. Default: O. 322 322 * @type int $admin_user_id The Blog Admin user ID. Default: 0. 323 * @type bool $html Default: true. 323 324 * } 324 325 * @return string User avatar string. … … 365 366 ), 366 367 'no_grav' => false, 368 'html' => true, 367 369 ) ); 368 370 … … 408 410 // We have a site icon. 409 411 if ( ! is_numeric( $site_icon ) ) { 412 // Just return the raw url of the Site Icon. 413 if ( ! $r['html'] ) { 414 return esc_url_raw( $site_icon ); 415 } 416 410 417 if ( empty( $r['width'] ) && ! isset( $size ) ) { 411 418 $size = 'full' === $r['type'] ? bp_core_avatar_full_width() : bp_core_avatar_thumb_width(); … … 432 439 if ( '' === $avatar ) { 433 440 $avatar = bp_core_fetch_avatar( array( 434 'item_id' 441 'item_id' => $admin_user_id, 435 442 // 'avatar_dir' => 'blog-avatars', 436 443 // 'object' => 'blog', 437 'type' => $r['type'], 438 'alt' => $r['alt'], 439 'css_id' => $r['id'], 440 'class' => $r['class'], 441 'width' => $r['width'], 442 'height' => $r['height'], 443 'no_grav' => $r['no_grav'], 444 'type' => $r['type'], 445 'alt' => $r['alt'], 446 'css_id' => $r['id'], 447 'class' => $r['class'], 448 'width' => $r['width'], 449 'height' => $r['height'], 450 'no_grav' => $r['no_grav'], 451 'html' => $r['html'], 444 452 ) ); 445 453 }
Note: See TracChangeset
for help on using the changeset viewer.