Make WordPress Core

Ticket #58972: 58972.diff

File 58972.diff, 771 bytes (added by dhruvishah2203, 13 months ago)
  • src/wp-admin/includes/template.php

    diff --git a/src/wp-admin/includes/template.php b/src/wp-admin/includes/template.php
    index 0771b7129e..2394fbb6f2 100644
    a b function touch_time( $edit = 1, $for_post = 1, $tab_index = 0, $multi = 0 ) { 
    900900 * @since 4.7.0 Added the `$post_type` parameter.
    901901 *
    902902 * @param string $default_template Optional. The template file name. Default empty.
    903  * @param string $post_type        Optional. Post type to get templates for. Default 'post'.
     903 * @param string $post_type        Optional. Post type to get templates for. Default 'page'.
    904904 */
    905905function page_template_dropdown( $default_template = '', $post_type = 'page' ) {
    906906        $templates = get_page_templates( null, $post_type );