Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
07/26/2011 05:26:30 PM (14 years ago)
Author:
boonebgorges
Message:

Adds hide_empty_fields parameter to bp_has_profile() and the rest of the profile template chain, to make zebra striping easier in the profile component. Fixes #3074. Props johnjamesjacoby for help with the patch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/bp-core-template.php

    r4847 r4869  
    651651    $is_current_component = false;
    652652
     653    // Backward compatibility: 'xprofile' should be read as 'profile'
     654    if ( 'xprofile' == $component )
     655        $component = 'profile';
     656
    653657    if ( !empty( $bp->current_component ) ) {
    654658
     
    10231027    if ( bp_is_current_component( 'xprofile' ) && bp_is_current_action( 'edit' ) )
    10241028        return true;
    1025 
     1029       
    10261030    return false;
    10271031}
Note: See TracChangeset for help on using the changeset viewer.