mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@56441 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
c2ae255fe1
commit
222af98bbe
@ -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 );
|
||||
|
||||
Loading…
Reference in New Issue
Block a user