Make WordPress Core


Ignore:
Timestamp:
11/16/2014 07:32:00 PM (10 years ago)
Author:
johnbillion
Message:

Add a filter to the displayed title of the default page template.

Fixes #27178
Props johnstonphilip

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-posts-list-table.php

    r29961 r30360  
    11051105                    <option value="-1"><?php _e( '&mdash; No Change &mdash;' ); ?></option>
    11061106    <?php   endif; // $bulk ?>
    1107                     <option value="default"><?php _e( 'Default Template' ); ?></option>
     1107                    <?php
     1108                    /** This filter is documented in wp-admin/includes/meta-boxes.php */
     1109                    $default_title = apply_filters( 'default_page_template_title',  __( 'Default Template' ), 'quick-edit' );
     1110                    ?>
     1111                    <option value="default"><?php echo esc_html( $default_title ); ?></option>
    11081112                    <?php page_template_dropdown() ?>
    11091113                </select>
Note: See TracChangeset for help on using the changeset viewer.