Ticket #8356: 8356.patch
| File 8356.patch, 2.0 KB (added by , 4 years ago) |
|---|
-
src/bp-core/bp-core-avatars.php
480 480 $avatar_loc->dir = trailingslashit( $params['avatar_dir'] ); 481 481 482 482 /** 483 * Filters the avatar folder directory URL.483 * Filters the avatar folder directory path. 484 484 * 485 485 * @since 1.1.0 486 486 * 487 * @param string $value Path to the avatar folder URL.487 * @param string $value Path to the avatar folder directory. 488 488 * @param int $value ID of the avatar item being requested. 489 489 * @param string $value Avatar type being requested. 490 490 * @param string $value Subdirectory where the requested avatar should be found. 491 491 */ 492 $avatar_folder_ url = apply_filters( 'bp_core_avatar_folder_url', ( $avatar_loc->url. $avatar_loc->dir . $params['item_id'] ), $params['item_id'], $params['object'], $params['avatar_dir'] );492 $avatar_folder_dir = apply_filters( 'bp_core_avatar_folder_dir', ( $avatar_loc->path . $avatar_loc->dir . $params['item_id'] ), $params['item_id'], $params['object'], $params['avatar_dir'] ); 493 493 494 494 /** 495 * Filters the avatar folder directory path.495 * Filters the avatar folder directory URL. 496 496 * 497 497 * @since 1.1.0 498 498 * 499 * @param string $value Path to the avatar folder directory.499 * @param string $value Path to the avatar folder URL. 500 500 * @param int $value ID of the avatar item being requested. 501 501 * @param string $value Avatar type being requested. 502 502 * @param string $value Subdirectory where the requested avatar should be found. 503 503 */ 504 $avatar_folder_ dir = apply_filters( 'bp_core_avatar_folder_dir', ( $avatar_loc->path. $avatar_loc->dir . $params['item_id'] ), $params['item_id'], $params['object'], $params['avatar_dir'] );504 $avatar_folder_url = apply_filters( 'bp_core_avatar_folder_url', ( $avatar_loc->url . $avatar_loc->dir . $params['item_id'] ), $params['item_id'], $params['object'], $params['avatar_dir'] ); 505 505 506 506 /** 507 507 * Look for uploaded avatar first. Use it if it exists.