#2739 closed enhancement (wontfix)
Add template_notices to theme files
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 1.5 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Templates | Keywords: | |
Cc: |
Description
Sometimes it might be necessary to display error/success messages on posts or archive pages, so we could add
<?php do_action( 'template_notices' ) ?>
to single.php, archive.php, page.php and index.php
Attachments (4)
Change History (13)
#3
@
14 years ago
I had a look at this, and I'm not sure adding the notification area to the WordPress templates works very well in practice. I think finding the best place in those templates is very hard, and is probably use-case specific.
travel-junkie: I think you said on a forum post about this, that you had written a component that needed this area on the blog templates? Can you explain what this component did and try to make the case for why this needs to be in the core template?
#5
@
14 years ago
- Resolution set to wontfix
- Status changed from accepted to closed
Closing this as wontfix unless someone has a good use case for this.
#6
@
14 years ago
Actually the template_notices action is needed on the activity permalink page when posting without javascript.
#7
@
14 years ago
That'd be a new ticket; please would you make one if its needed? As I understand, this ticket is about adding template_notices to standard WordPress template files such as index.php and single.php.
Apologies duplicated your effort on:
http://trac.buddypress.org/ticket/2740
Patch file containing above files plus onecolumn-page.php