Opened 17 years ago
Closed 16 years ago
#12655 closed defect (bug) (fixed)
"Parent" dropdown missing when only 1 page present
| Reported by: | dd32 | Owned by: | sorich87 |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.0 |
| Component: | Administration | Version: | 3.0 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: |
Description
At present, if you edit a hierarchical post type (Page, or custom type) and have only 1 page OR only have 1 top level page, The "Parent" dropdown list will be hidden.
The title and description remain, but there is no selection box.
This is due to wp_dropdown_pages() only displaying the <select> if pages are present.
One solution is to hide the entire parent functionality until pages are available
Another is to leave as-is
And another is to force the display of the <select> element even with no pages (Either all the time, or only when $show_option_none is set potentially..
While this would rarely be run into, It can cause some confusion for custom post_types which are more likely to have fewer entries.
Thoughts?
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
I think it is better to hide the 'Parent' attribute to avoid confusion.