[wp-trac] [WordPress Trac] #21309: Introduce WP_Post class

WordPress Trac wp-trac at lists.automattic.com
Wed Aug 22 17:45:07 UTC 2012


#21309: Introduce WP_Post class
----------------------------+------------------
 Reporter:  scribu          |       Owner:
     Type:  task (blessed)  |      Status:  new
 Priority:  normal          |   Milestone:  3.5
Component:  General         |     Version:
 Severity:  normal          |  Resolution:
 Keywords:  has-patch       |
----------------------------+------------------

Comment (by ryan):

 Before stickies-get_posts.diff:

 {{{
 SELECT * FROM wp_trunk_posts WHERE wp_trunk_posts.ID IN (2131)
 }}}

 After:

 {{{
 SELECT wp_trunk_posts.* FROM wp_trunk_posts WHERE 1=1 AND
 wp_trunk_posts.ID IN (2131) AND wp_trunk_posts.post_type = 'post' AND
 (wp_trunk_posts.post_status = 'publish') ORDER BY wp_trunk_posts.post_date
 DESC
 }}}

 Looks sane to me.

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


More information about the wp-trac mailing list