[wp-trac] [WordPress Trac] #12976: Add get_post_content()/get_post_excerpt() and save_postdata()/restore_postdata() for support.

WordPress Trac wp-trac at lists.automattic.com
Mon Apr 12 17:16:44 UTC 2010


#12976: Add get_post_content()/get_post_excerpt() and
save_postdata()/restore_postdata() for support.
--------------------------+-------------------------------------------------
 Reporter:  mikeschinkel  |       Owner:            
     Type:  enhancement   |      Status:  new       
 Priority:  normal        |   Milestone:  Unassigned
Component:  Post Types    |     Version:  3.0       
 Severity:  normal        |    Keywords:            
--------------------------+-------------------------------------------------

Comment(by nacin):

 get_the_title() already takes a post ID, as does a few others. I'm pretty
 sure there is a ticket or two that suggest doing the same for
 get_the_content() and others.

 We could probably do it so get_the_content() will not rely on the globals
 if you requested with a specific post in mind. Then again, it also does a
 lot of crazy things, such as paging, <!--more-->, and password protection.

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


More information about the wp-trac mailing list