Skip to:
Content
Pages
Categories
Search
Top
Bottom

Error in bp_field_has_public_data

  • Avatar of stoppays
    stoppays
    Participant

    @stoppays

    I noticed that using bp_field_has_data() && bp_field_has_public_data() in the profile loop stopped working on my site (I’m using the facebuddy theme which I migrated over to the new template system).

    Has the code which determines if a field has data now decide if something is public or not? If not, the code looks like it longer does what it is supposed to:

    217 function bp_field_has_public_data() {

    218 global $profile_template;

    220 if ( $profile_template->field_has_data )

    221 return true;

    223 return false;

    224 }

    Patiently Pondering,

    -Stoppay

Viewing 2 replies - 1 through 2 (of 2 total)
  • Avatar of Jeff Sayre
    Jeff Sayre
    Participant

    @jeffsayre

    I’m using the facebuddy theme which I migrated over to the new template system

    So, you’ve updated your theme to the new parent/child theme architecture but you have not yet upgraded BuddyPress.

    Why do I say this? Because the line numbers for the code you list above are for BP version 1.0.x and not for the new version 1.1.x. In the current v1.1 series, that function you refer to starts on line 236.

    You need to upgrade BuddyPress to the newest version before you can use the new theme architecture.

    Avatar of stoppays
    stoppays
    Participant

    @stoppays

    I am running buddypress 1.1.2

    Viewing the code I downloaded for buddypress downloads.wordpress.org, if you start at line 236 is the only place the word public appears… the code is still the same:

    function bp_field_has_public_data() {

    global $profile_template;

    if ( $profile_template->field_has_data )

    return true;

    return false;

    }

Viewing 2 replies - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.