[wp-trac] [WordPress Trac] #9674: Better support for custom post types
WordPress Trac
wp-trac at lists.automattic.com
Fri Jan 8 16:26:49 UTC 2010
#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 ryan):
I'm fine with having a supports arg for register_post_type(). I think
add_post_type_support() is still useful so that capabilities can be added
after the fact of registration and post_type_supports() is a very readable
short hand that fits in with current_theme_supports() and
current_user_can().
I foresee edit-pages.php and edit-form-adavanced.php being merge and the
meta box additions being done in a more abstracted way. This patch is just
another step along the way.
In an early version of the patch I used the metabox name instead of the
more generic feature names. For example 'post_thumbnail_meta_box' rather
than 'post-thumbnails'. I changed it with the idea that the more generic
cap could be used when checking for other post-thumbnails related things.
Turn them all of if the feature is not supported.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/9674#comment:126>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list