Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
01/22/2011 08:58:56 AM (15 years ago)
Author:
johnjamesjacoby
Message:

Clean up single member root template files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-themes/bp-default/members/single/profile.php

    r3806 r3808  
    1616
    1717        <?php
    18                 if ( 'edit' == bp_current_action() ) :
     18                if ( bp_is_current_action( 'edit' ) )
    1919                        locate_template( array( 'members/single/profile/edit.php' ), true );
    20 
    21                 elseif ( 'change-avatar' == bp_current_action() ) :
     20                elseif ( bp_is_current_action( 'change-avatar' ) )
    2221                        locate_template( array( 'members/single/profile/change-avatar.php' ), true );
    23 
    24                 elseif ( bp_is_active( 'profile' ) ) :
     22                elseif ( bp_is_active( 'profile' ) )
    2523                        locate_template( array( 'members/single/profile/profile-loop.php' ), true );
    26 
    27                 else :
     24                else
    2825                        locate_template( array( 'members/single/profile/profile-wp.php' ), true );
    29 
    30                 endif;
    3126        ?>
    3227
Note: See TracChangeset for help on using the changeset viewer.