[wp-trac] Re: [WordPress Trac] #9868: the_title(), the_content(), the_permalink(), etc inconsistencies

WordPress Trac wp-trac at lists.automattic.com
Mon May 18 23:08:27 GMT 2009


#9868: the_title(), the_content(), the_permalink(), etc inconsistencies
-------------------------+--------------------------------------------------
 Reporter:  archon810    |       Owner:            
     Type:  enhancement  |      Status:  new       
 Priority:  normal       |   Milestone:  Unassigned
Component:  General      |     Version:  2.7.1     
 Severity:  normal       |    Keywords:            
-------------------------+--------------------------------------------------

Comment(by filosofo):

 The general naming convention in WP now is that {{{the_[something]}}}
 prints what {{{get_the_[something]}}} returns.

 The print arguments in functions such as {{{the_title}}} are vestiges from
 the old way of doing it, kept for backwards-compatibility purposes.

 Any proposed changes should go along those lines.

 If you think {{{the_content}}} and {{{get_the_content}}} are bad, take a
 look at {{{get_the_excerpt}}}.  The trick is fixing these inconsistencies
 without breaking zillions of themes and plugins.

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


More information about the wp-trac mailing list