#58972 closed defect (bug) (fixed)
Doc block on function reference for page_template_dropdown is incorrect
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 6.4 | Priority: | normal |
| Severity: | minor | Version: | 4.7 |
| Component: | Text Changes | Keywords: | has-patch |
| Focuses: | docs | Cc: |
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.
2 years ago
#1
- Keywords has-patch added
This ticket was mentioned in Slack in #core by priethor. View the logs.
2 years ago
@audrasjb commented on PR #4962:
2 years ago
#7
committed in 56441
Note: See
TracTickets for help on using
tickets.
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