[wp-trac] [WordPress Trac] #18375: Post type templates
WordPress Trac
noreply at wordpress.org
Fri Oct 21 20:06:45 UTC 2016
#18375: Post type templates
--------------------------------------+-------------------------
Reporter: johnbillion | Owner: swissspidy
Type: enhancement | Status: assigned
Priority: normal | Milestone: 4.7
Component: Posts, Post Types | Version:
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests | Focuses: template
--------------------------------------+-------------------------
Comment (by sc0ttkclark):
@dipesh.kakadiya you should be using `esc_html( sprintf( _x( '%s
Attributes', 'Singular page attributes meta box title' ),
$post_type_object->labels->singular_name ) )` and perhaps split that up
across a few lines to keep things clean.
Using sprintf() and _x() ensures translators can provide better contextual
translations.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/18375#comment:44>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list