Skip to:
Content

BuddyPress.org

Opened 8 years ago

Closed 8 years ago

Last modified 4 years ago

#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)

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

Download all attachments as: .zip

Change History (4)

@mercime
8 years ago

#1 @cnorris23
8 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.

#2 @DJPaul
8 years ago

  • Milestone Awaiting Review deleted

#3 @DJPaul
4 years ago

  • Component changed from Appearance - Template Parts to Templates
Note: See TracTickets for help on using tickets.