Skip to:
Content

BuddyPress.org

Ticket #7073: bp.diff

File bp.diff, 570 bytes (added by mmcachran, 8 years ago)

updates for class-bp-xprofile-field.php

  • class-bp-xprofile-field.php

     
    237237
    238238                        $field = $wpdb->get_row( $wpdb->prepare( "SELECT * FROM {$bp->profile->table_name_fields} WHERE id = %d", $field_id ) );
    239239
    240                         wp_cache_add( $field->id, $field, 'bp_xprofile_fields' );
    241 
    242240                        if ( ! $field ) {
    243241                                return false;
    244242                        }
     243
     244                        wp_cache_add( $field->id, $field, 'bp_xprofile_fields' );
    245245                }
    246246
    247247                $_field = new BP_XProfile_Field();