#4201 closed defect (bug) (no action required)
Add missing endif; to members/single/activity.php
Reported by: | mercime | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | Templates | Keywords: | has-patch |
Cc: |
Description
<?php if ( is_user_logged_in() && bp_is_my_profile() && ( !bp_current_action() || bp_is_current_action( 'just-me' ) ) ) locate_template( array( 'activity/post-form.php'), true ); do_action( 'bp_after_member_activity_post_form' ); do_action( 'bp_before_member_activity_content' ); ?>
add endif;
<?php if ( is_user_logged_in() && bp_is_my_profile() && ( !bp_current_action() || bp_is_current_action( 'just-me' ) ) ) locate_template( array( 'activity/post-form.php'), true ); endif; do_action( 'bp_after_member_activity_post_form' ); do_action( 'bp_before_member_activity_content' ); ?>
Attachments (1)
Change History (4)
Note: See
TracTickets for help on using
tickets.
This isn't needed here. The "if" statement and it's result if condtions = true are all contained within the same <?php?>. Additionally, the "if" statement is followed by only one line, so no brackets or "endif;" are required to terminate. All other if statements in the file are also properly terminated.