[wp-trac] [WordPress Trac] #18561: Better Way to Insert Things Below Individual Posts

WordPress Trac wp-trac at lists.automattic.com
Thu Sep 1 22:30:32 UTC 2011


#18561: Better Way to Insert Things Below Individual Posts
-------------------------+------------------------------
 Reporter:  jane         |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  General      |     Version:  3.2.1
 Severity:  minor        |  Resolution:
 Keywords:               |
-------------------------+------------------------------

Comment (by mikeschinkel):

 Replying to [comment:52 Otto42]:
 > Also, just wrapping the while ( have_posts() ) : the_post(); ...
 endwhile; with some hooks around it seems of limited benefit to me. Theme
 authors understand the loop already. Wrapping it isn't really needed.

 Wrapping eliminates the need to duplicate commonly-used code in every
 theme file, but more importantly it opens the door to be able to annotate
 `the_loop()` with new ''"standard"'' hooks that plugins can depend on,
 when the theme specifies that it is using `'the_loop()` of course.

 Replying to [comment:58 johnjamesjacoby]:
 > The concept here is to allow file names AND paths to be filtered.
 Plugins then can include their own fall-back templates in their own
 locations.

 +1

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/18561#comment:74>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list