[wp-trac] [WordPress Trac] #27178: Filter Hook for "Default Template"

WordPress Trac noreply at wordpress.org
Fri Feb 21 21:15:18 UTC 2014


#27178: Filter Hook for "Default Template"
--------------------------------+-----------------------------
 Reporter:  johnstonphilip      |      Owner:
     Type:  enhancement         |     Status:  new
 Priority:  normal              |  Milestone:  Awaiting Review
Component:  General             |    Version:  3.8.1
 Severity:  normal              |   Keywords:
  Focuses:  ui, administration  |
--------------------------------+-----------------------------
 As a theme author, I would really like to give more of a relevant title to
 the "Default Template" for pages in the "Page Attributes" > "Template"
 dropdown menu. Unfortunately, this title is hard coded into WordPress so
 we can't customize it (aside from translating it).

 For example, rather than the Default Template simply being called "Default
 Template", it would be great to be able to say "No Sidebar", or something
 else which gives more relevance and understanding to the user.

 "Default Template" doesn't say anything descriptive about the template at
 all and is fairly unhelpful.

 A simple filter hook in wp-admin/includes/meta-boxes.php on line 664 would
 allow for this.

 The code as it currently is:
 {{{
 <option value='default'><?php _e('Default Template'); ?></option>
 }}}

 The code I would like to see:

 {{{
 <option value='default'><?php apply_filters(
 'default_page_template_title',  _e('Default Template') ); ?></option>
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/27178>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list