Add a filter to the displayed title of the default page template.
Fixes #27178 Props johnstonphilip Built from https://develop.svn.wordpress.org/trunk@30360 git-svn-id: http://core.svn.wordpress.org/trunk@30359 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -1104,7 +1104,11 @@ class WP_Posts_List_Table extends WP_List_Table {
|
||||
<?php if ( $bulk ) : ?>
|
||||
<option value="-1"><?php _e( '— No Change —' ); ?></option>
|
||||
<?php endif; // $bulk ?>
|
||||
<option value="default"><?php _e( 'Default Template' ); ?></option>
|
||||
<?php
|
||||
/** This filter is documented in wp-admin/includes/meta-boxes.php */
|
||||
$default_title = apply_filters( 'default_page_template_title', __( 'Default Template' ), 'quick-edit' );
|
||||
?>
|
||||
<option value="default"><?php echo esc_html( $default_title ); ?></option>
|
||||
<?php page_template_dropdown() ?>
|
||||
</select>
|
||||
</label>
|
||||
|
||||
Reference in New Issue
Block a user