Skip to:
Content
Pages
Categories
Search
Top
Bottom

Using of Deprecated Function (bp_core_get_user_domain)

  • @oxibug

    Participant

    Good Day!

    The BuddyPress function bp_core_get_user_domain is deprecated since version 12.0.0, in \bbpress\includes\extend\buddypress\members.php

    Deprecated: Function bp_core_get_user_domain is deprecated since version 12.0.0! Use bp_members_get_user_url() instead

    I found this post https://bbpress.org/forums/topic/please-fix-this-problem/ and I don’t have BP Classic

    I found the function bp_core_get_user_domain in BuddyPress itself,
    file: (buddypress\bp-core\deprecated\12.0.php) is marked as Deprecated since version 12.0.0

    It’s very easy to replace the bp_core_get_user_domain to bp_members_get_user_url, I don’t know why it takes over a year to make this change!!

Viewing 3 replies - 1 through 3 (of 3 total)
  • @ricsca2

    Participant

    What does this change do? Has it been fixed after five months?

    @robin-w

    Moderator

    so are you seeing this notice?

    @robin-w

    Moderator

    but yes it’s fixed in 2.6.14

    // BuddyPress < 12.0 (deprecated code is intentionally included)
    		if ( function_exists( 'bp_core_get_user_domain' ) ) {
    			$url = array( bp_core_get_user_domain( $user_id ) );
    
    		// BuddyPress > 12.0 (rewrite rules)
    		} elseif ( function_exists( 'bp_members_get_user_url' ) ) {
    			$url = array( bp_members_get_user_url( $user_id ) );
    		}
Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Skip to toolbar