[wp-trac] Re: [WordPress Trac] #3478: Title of private posts show
up in dashboard
WordPress Trac
wp-trac at lists.automattic.com
Fri Apr 6 23:08:49 GMT 2007
#3478: Title of private posts show up in dashboard
----------------------+-----------------------------------------------------
Reporter: McShelby | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone: 2.4
Component: Security | Version: 2.0.5
Severity: major | Resolution:
Keywords: |
----------------------+-----------------------------------------------------
Comment (by chess64):
Isn't this fixed already? The sql used is
{{{
$wpdb->get_results("SELECT ID, post_title FROM $wpdb->posts WHERE
post_type = 'post' AND " . get_private_posts_cap_sql('post') . " AND
post_date_gmt < '$today' ORDER BY post_date DESC LIMIT 5")
}}}
I'm pretty sure the {{{get_private_posts_cap_sql('post')}}} part does it.
--
Ticket URL: <http://trac.wordpress.org/ticket/3478#comment:2>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list