[wp-trac] [WordPress Trac] #12655: "Parent" dropdown missing when only 1 page present

WordPress Trac wp-trac at lists.automattic.com
Sat Mar 20 05:37:06 UTC 2010


#12655: "Parent" dropdown missing when only 1 page present
----------------------------+-----------------------------------------------
 Reporter:  dd32            |       Owner:     
     Type:  defect (bug)    |      Status:  new
 Priority:  normal          |   Milestone:  3.0
Component:  Administration  |     Version:  3.0
 Severity:  normal          |    Keywords:     
----------------------------+-----------------------------------------------
 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[[BR]]
 Another is to leave as-is[[BR]]
 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?

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/12655>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list