From 86323b7f59da614b633aa03ab67d08fa4468bbff Mon Sep 17 00:00:00 2001 From: audrasjb Date: Thu, 24 Aug 2023 13:41:23 +0000 Subject: [PATCH] Docs: Correct default post type in `page_template_dropdown()` docblock. The default post type used by `page_template_dropdown()` is `page`, not `post`. Props maxinacube. Fixes #58972. See #58833. Built from https://develop.svn.wordpress.org/trunk@56441 git-svn-id: http://core.svn.wordpress.org/trunk@55953 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/template.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-admin/includes/template.php b/wp-admin/includes/template.php index 0771b7129e..2394fbb6f2 100644 --- a/wp-admin/includes/template.php +++ b/wp-admin/includes/template.php @@ -900,7 +900,7 @@ function touch_time( $edit = 1, $for_post = 1, $tab_index = 0, $multi = 0 ) { * @since 4.7.0 Added the `$post_type` parameter. * * @param string $default_template Optional. The template file name. Default empty. - * @param string $post_type Optional. Post type to get templates for. Default 'post'. + * @param string $post_type Optional. Post type to get templates for. Default 'page'. */ function page_template_dropdown( $default_template = '', $post_type = 'page' ) { $templates = get_page_templates( null, $post_type ); diff --git a/wp-includes/version.php b/wp-includes/version.php index 57cbb7b250..d08a9a1270 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.4-alpha-56440'; +$wp_version = '6.4-alpha-56441'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.