[wp-trac] [WordPress Trac] #17993: the_content vs get_the_content

WordPress Trac wp-trac at lists.automattic.com
Fri Sep 14 17:28:19 UTC 2012


#17993: the_content vs get_the_content
-------------------------------+------------------------------
 Reporter:  merlinox           |       Owner:
     Type:  feature request    |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Formatting         |     Version:  3.2
 Severity:  normal             |  Resolution:
 Keywords:  close 2nd-opinion  |
-------------------------------+------------------------------

Comment (by mdgl):

 The problem is that those 3 lines have to be replicated in literally
 thousands of plugins/themes! This is wasteful and error prone as well as
 creating even more fragile dependencies between those plugins/themes and
 core.

 If WP wants to be a grown-up CMS, I would argue that it really needs a
 simple, obvious and foolproof way for extensions to obtain important
 things like "the_content" and "the_excerpt" that include all of the
 processing that WP intends to be applied (e.g. wpautop, texturize and so
 on). Of course these also need to be easily and *predictably* customisable
 by themes/plugins where necessary.

 We have dozens of related tickets that would benefit from some simplicity
 and consistency here.  In my humble opinion, WP would benefit greatly from
 a serious look at "hardening" the API between themes/plugins and core in
 this way.  It's not bad, but becoming increasingly fragile and I think in
 need of a bit of love and attention!

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


More information about the wp-trac mailing list