Skip to:
Content

Opened 9 years ago

Closed 9 years ago

#2286 closed defect (bug) (fixed)

misplaced action call on forums/index.php theme?

Reported by: nuprn1 Owned by:
Milestone: 1.5 Priority: minor
Severity: Version:
Component: Forums Keywords:
Cc:

Description

currently index.php theme file is setup as

			<div id="forums-dir-list" class="forums dir-list">
				<?php locate_template( array( 'forums/forums-loop.php' ), true ) ?>
			</div>

			<?php do_action( 'bp_directory_forums_content' ) ?>

			<?php wp_nonce_field( 'directory_forums', '_wpnonce-forums-filter' ) ?>

			<?php do_action( 'bp_after_directory_forums_content' ) ?>

does it need to be, where do_action( 'bp_directory_forums_content' ) is above the forums-loop call?

			<?php do_action( 'bp_directory_forums_content' ) ?>

			<div id="forums-dir-list" class="forums dir-list">
				<?php locate_template( array( 'forums/forums-loop.php' ), true ) ?>
			</div>

			<?php wp_nonce_field( 'directory_forums', '_wpnonce-forums-filter' ) ?>

			<?php do_action( 'bp_after_directory_forums_content' ) ?>

Change History (3)

#1 @johnjamesjacoby
9 years ago

Right now it works like this in all of the directory components, with the _content action called after the loop.

#2 @johnjamesjacoby
9 years ago

  • Milestone changed from 1.2.4 to 1.3

Moving to 1.3, where actions and their names and placements can maybe get a sweep?

#3 @mrmaz
9 years ago

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

(In [2908]) fixes #2286, added actions before loop, normalized directory actions across all 5 components

Note: See TracTickets for help on using tickets.