Skip to:
Content

BuddyPress.org

Ticket #8356: 8356.patch

File 8356.patch, 2.0 KB (added by devutpol, 4 years ago)

Patch created

  • src/bp-core/bp-core-avatars.php

     
    480480        $avatar_loc->dir   = trailingslashit( $params['avatar_dir'] );
    481481
    482482        /**
    483          * Filters the avatar folder directory URL.
     483         * Filters the avatar folder directory path.
    484484         *
    485485         * @since 1.1.0
    486486         *
    487          * @param string $value Path to the avatar folder URL.
     487         * @param string $value Path to the avatar folder directory.
    488488         * @param int    $value ID of the avatar item being requested.
    489489         * @param string $value Avatar type being requested.
    490490         * @param string $value Subdirectory where the requested avatar should be found.
    491491         */
    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'] );
    493493
    494494        /**
    495          * Filters the avatar folder directory path.
     495         * Filters the avatar folder directory URL.
    496496         *
    497497         * @since 1.1.0
    498498         *
    499          * @param string $value Path to the avatar folder directory.
     499         * @param string $value Path to the avatar folder URL.
    500500         * @param int    $value ID of the avatar item being requested.
    501501         * @param string $value Avatar type being requested.
    502502         * @param string $value Subdirectory where the requested avatar should be found.
    503503         */
    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'] );
    505505
    506506        /**
    507507         * Look for uploaded avatar first. Use it if it exists.