[wp-trac] [WordPress Trac] #9674: Better support for custom post types
WordPress Trac
wp-trac at lists.automattic.com
Tue Dec 29 06:40:27 UTC 2009
#9674: Better support for custom post types
------------------------------------+---------------------------------------
Reporter: wnorris | Owner: ryan
Type: task (blessed) | Status: reopened
Priority: normal | Milestone: 3.0
Component: Administration | Version: 2.9
Severity: normal | Resolution:
Keywords: has-patch tested early |
------------------------------------+---------------------------------------
Comment(by dd32):
> How safe is it to assume that 9674.8.diff is pretty darn close to what
the final implementation of Custom Post/Content Type UI will look like?
Looking at the patch, It seems it pretty much mimicks the current
Post/Page screen, Which is what i'd expect. There'll be subtle changes
here and there i'd say though.
Slight bug in the code:
{{{
$user_posts_count = $wpdb->get_var( $wpdb->prepare("SELECT COUNT(1) FROM
$wpdb->posts WHERE post_type = 'p%s' AND post_status != 'trash' AND
post_author = %d", $post_type, $current_user->ID) );
}}}
That should be written as {{{...post_type = %s AND...}}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/9674#comment:62>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list