diff --git src/bp-members/bp-members-template.php src/bp-members/bp-members-template.php
index 4d3824f..a506d5a 100644
|
|
|
function bp_signup_avatar_dir_value() {
|
| 1684 | 1684 | * @return string |
| 1685 | 1685 | */ |
| 1686 | 1686 | function bp_get_signup_avatar_dir_value() { |
| 1687 | | global $bp; |
| | 1687 | $bp = buddypress(); |
| 1688 | 1688 | |
| 1689 | 1689 | // Check if signup_avatar_dir is passed |
| 1690 | | if ( !empty( $_POST['signup_avatar_dir'] ) ) |
| | 1690 | if ( ! empty( $_POST['signup_avatar_dir'] ) ) { |
| 1691 | 1691 | $signup_avatar_dir = $_POST['signup_avatar_dir']; |
| 1692 | 1692 | |
| 1693 | 1693 | // If not, check if global is set |
| 1694 | | elseif ( !empty( $bp->signup->avatar_dir ) ) |
| | 1694 | } else if ( ! empty( $bp->signup->avatar_dir ) ) { |
| 1695 | 1695 | $signup_avatar_dir = $bp->signup->avatar_dir; |
| 1696 | 1696 | |
| 1697 | 1697 | // If not, set false |
| 1698 | | else |
| | 1698 | } else { |
| 1699 | 1699 | $signup_avatar_dir = false; |
| | 1700 | } |
| 1700 | 1701 | |
| 1701 | | return apply_filters( 'bp_get_signup_avatar_dir_value', $bp->signup->avatar_dir ); |
| | 1702 | return apply_filters( 'bp_get_signup_avatar_dir_value', $signup_avatar_dir ); |
| 1702 | 1703 | } |
| 1703 | 1704 | |
| 1704 | 1705 | /** |