#58972 closed defect (bug) (fixed)
Doc block on function reference for page_template_dropdown is incorrect
| Reported by: | maxinacube | Owned by: | audrasjb |
|---|---|---|---|
| Priority: | normal | Milestone: | 6.4 |
| Component: | Text Changes | Version: | 4.7 |
| Severity: | minor | Keywords: | has-patch |
| Cc: | Focuses: | docs |
Description
Within the doc block for the page_template_dropdown function in wp-admin/includes/template.php it states that the default value for $post_type is "post" while the parameter on the function sets the default the value for $post_type to "page".
Attachments (1)
Change History (8)
This ticket was mentioned in PR #4962 on WordPress/wordpress-develop by maxinacube.
3 years ago
#1
- Keywords has-patch added
This ticket was mentioned in Slack in #core by priethor. View the logs.
3 years ago
@audrasjb commented on PR #4962:
3 years ago
#7
committed in 56441
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
The doc block for the
page_template_dropdownfunction lists the default $post_type as "post", while the parameter on the function is sets the default $post_type to "page".This PR reflects the proper default value of $post_type in the doc block.
Trac ticket: https://core.trac.wordpress.org/ticket/58972