Make WordPress Core

Ticket #25879: 25879.diff

File 25879.diff, 865 bytes (added by iamfriendly, 9 years ago)

Refreshed the patch

  • wp-admin/includes/template-functions.php

    diff --git wp-admin/includes/template-functions.php wp-admin/includes/template-functions.php
    index e3abbf9..df1d1d3 100644
    function touch_time( $edit = 1, $for_post = 1, $tab_index = 0, $multi = 0 ) { 
    740740 */
    741741function page_template_dropdown( $default = '' ) {
    742742        $templates = get_page_templates( get_post() );
     743        /**
     744         * Filters the page templates displayed in dropdown.
     745         *
     746         * @since 4.4.0
     747         *
     748         * @param array $templates The templates to be displayed.
     749         * @param string $default The default template file name.
     750         */
     751        $templates = apply_filters( 'page_template_dropdown_items', $templates, $default );
    743752        ksort( $templates );
    744753        foreach ( array_keys( $templates ) as $template ) {
    745754                $selected = selected( $default, $templates[ $template ], false );