[wp-hackers] post_status and post_type

Choan C. Gálvez choan.galvez at gmail.com
Thu Feb 9 15:44:35 GMT 2006


On 2/9/06, Owen Winkler <ringmaster at midnightcircus.com> wrote:
> Ryan Boren wrote:
> > Behold the changeset of destruction.
> >
> > http://trac.wordpress.org/changeset/3510
> >
>
> Curious on this one point:
>
> Why is post_type a varchar(100) and not an enum('post','page',
> 'attachment')?  Wouldn't that be faster?

Faster, probably.

I've been playing recently with Drupal, and do you know what? The
`nodes` table (more or less equivalent to WP `wp_posts`) contains a
`type` field.

This allows programmers to define new content types. Why should WP
restrict "types" to `post` and `page`?

--
Choan


More information about the wp-hackers mailing list