[Bb-trac] [bbPress] #1014: inconsistent action hooks across new vs edit post templates

bbPress bb-trac at lists.bbpress.org
Sat Dec 20 11:45:06 GMT 2008


#1014: inconsistent action hooks across new vs edit post templates
----------------------+-----------------------------------------------------
 Reporter:  _ck_      |       Owner:                    
     Type:  defect    |      Status:  new               
 Priority:  normal    |   Milestone:  1.0-beta & XML-RPC
Component:  Back-end  |     Version:  0.9               
 Severity:  normal    |    Keywords:                    
----------------------+-----------------------------------------------------
 I could have sworn I asked for this awhile back but anyway:

 Because bbPress uses two different templates for creating a post vs
 editing a post,
 there is a mess of inconsistency.

 So `post-form.php` for New Posts has this helpful bit:

 `<?php endif; do_action( 'post_form_pre_post' ); ?>`

 But `edit-form.php` has no such pair.

 I'd like to suggest line 9 be changed from

 `<?php endif; ?>`

 to

 `<?php endif; do_action( 'edit_form_pre_post' ); ?>`

 Please do NOT re-use the same action name as the new post
 or it will break existing plugins. Use a new hook.

-- 
Ticket URL: <http://trac.bbpress.org/ticket/1014>
bbPress <http://bbpress.org/>
Innovative forum development


More information about the Bb-trac mailing list