[wp-trac] [WordPress Trac] #19257: Allow post types to override the phrase "Featured image"
WordPress Trac
wp-trac at lists.automattic.com
Wed Nov 16 05:58:36 UTC 2011
#19257: Allow post types to override the phrase "Featured image"
-------------------------+------------------------------
Reporter: johnbillion | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Post Types | Version: 3.3
Severity: normal | Resolution:
Keywords: has-patch |
-------------------------+------------------------------
Changes (by johnbillion):
* keywords: => has-patch
Comment:
Here's my take on this. The attached patch adds three new labels to the
post type objects. The defaults are:
* featured_image => 'Featured Image'
* set_featured_image => 'Set featured image'
* remove_featured_image => 'Remove featured image'
* use_featured_image => 'Use as featured image'
These strings are used in the featured image meta box and in the media
lightbox.
A custom post type would set its own labels for featured images like so:
{{{
register_post_type( 'company', array(
'labels' => array(
'featured_image' => 'Company Logo',
'set_featured_image' => 'Set company logo',
'remove_featured_image' => 'Remove company logo',
'use_featured_image' => 'Use as company logo'
)
) );
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/19257#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list