[wp-trac] [WordPress Trac] #27500: Turn the "template" metabox functionality for pages into a capability for all CPTs
WordPress Trac
noreply at wordpress.org
Mon Mar 24 17:01:27 UTC 2014
#27500: Turn the "template" metabox functionality for pages into a capability for
all CPTs
-------------------------------+-----------------------------
Reporter: lgladdy | Owner:
Type: feature request | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Posts, Post Types | Version:
Severity: normal | Keywords:
Focuses: ui, template |
-------------------------------+-----------------------------
Currently, wp-admin/includes/meta-boxes.php has the following code, which
determines if the "template" meta box is shown for in the admin:
{{{
if ( 'page' == $post->post_type && 0 != count( get_page_templates( $post )
) ) {
}}}
But, custom post types should be able to use this templating functionality
too. I'm sure it would need more than just patching meta-boxes.php to
enable it, but it would be awesome if this was turned into a registerable
capability of custom post types.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/27500>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list