[wp-trac] [WordPress Trac] #31804: Explicitly declare whether or not a post type supports attachments

WordPress Trac noreply at wordpress.org
Mon Mar 30 14:57:09 UTC 2015


#31804: Explicitly declare whether or not a post type supports attachments
---------------------------------------------+-----------------------------
 Reporter:  danielbachhuber                  |       Owner:
     Type:  enhancement                      |      Status:  new
 Priority:  normal                           |   Milestone:  Future Release
Component:  Posts, Post Types                |     Version:
 Severity:  normal                           |  Resolution:
 Keywords:  needs-patch dev-feedback wp-api  |     Focuses:
---------------------------------------------+-----------------------------

Comment (by danielbachhuber):

 > What else would that kind of specification entail? Turning off parts of
 core UI? Explicit checks before assigning the post_parent?

 This is certainly something that needs to be fleshed out. At the very
 least, it could be an informational flag for WP-API — `post_type_supports(
 'attachment' )`. However, it's worthwhile to do some technical discovery
 on whether such a flag should have an impact on existing components and UI
 in WordPress.

 I'm open to suggestions on how we could make the inference that a post
 type supports attachments if we want to punt on adding something to core,
 but I don't have any great ideas at the moment.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/31804#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list