Skip to:
Content

Opened 2 years ago

Closed 2 years ago

Last modified 2 years ago

#4201 closed defect (bug) (invalid)

Add missing endif; to members/single/activity.php

Reported by: mercime Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Theme 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)

4201.diff (780 bytes) - added by mercime 2 years ago.

Download all attachments as: .zip

Change History (3)

mercime2 years ago

comment:1 cnorris232 years ago

  • Resolution set to invalid
  • Status changed from new to closed

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.

comment:2 DJPaul2 years ago

  • Milestone Awaiting Review deleted
Note: See TracTickets for help on using tickets.