[wp-trac] [WordPress Trac] #18561: Better Way to Insert Things Below Individual Posts
WordPress Trac
wp-trac at lists.automattic.com
Thu Sep 1 09:15:00 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 Otto42):
The idea behind the_rest doesn't accomplish that goal, since using
the_rest wouldn't be a drop in. You'd have to reformat your output for the
other stuff not in the_content (ie, the header and footer surrounding
the_content) into action hooks. It's not as easy to implement as it seems
at first glance.
get_template_part is equally not easy, but a fair number of themes are
already using it, and there's a lot of advantages to it beyond just this
particular case. So making it capable of handling this case as well, along
with giving a reason to standardize on "parts", solves more problems and
has greater benefits. Plus it's a lot simpler and doesn't needlessly add
one-more-thing.
The problem with adding new things is that once they're in, they're in
forever and have to be supported until the end of time. Modifying existing
things to be more capable is a better long run approach, when it makes
sense to do so.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/18561#comment:18>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list