[wp-trac] [WordPress Trac] #37974: Add multi-panel feature to pages through add_theme_support

WordPress Trac noreply at wordpress.org
Thu Oct 13 23:56:32 UTC 2016


#37974: Add multi-panel feature to pages through add_theme_support
-----------------------------------------+------------------
 Reporter:  karmatosed                   |       Owner:
     Type:  task (blessed)               |      Status:  new
 Priority:  normal                       |   Milestone:  4.7
Component:  Themes                       |     Version:
 Severity:  normal                       |  Resolution:
 Keywords:  has-ux-feedback needs-patch  |     Focuses:  ui
-----------------------------------------+------------------

Comment (by bradyvercher):

 Replying to [comment:139 karmatosed]:
 > So having multiple pages added like that is expected? I'm a little
 confused if that's the case then. Maybe as I change it just resets? That
 feels less weird for users.

 There are a few different approaches, all with their own weird little edge
 cases.

 Basically:
 * If the page doesn't exist in the list, it needs to be added.
 * If it already exists in the list, the list is just updated to indicate
 the new front page.

 That does allow pages to pile up, but I think that's a friendlier than
 tossing away a user's selections, especially if they've already added 6 or
 7 items. In that case, prepending the front page to the list mimics what
 happens on the front end and deleting unwanted sections requires less
 effort than adding and resorting. I also don't think changing the front
 page happens often enough that it would become a major hassle.

 That being said, [attachment:37974.12.diff] does contain a tweak that will
 replace an existing item if there's only one in the list. That might
 eliminate the most common scenario where sections would pile up.

 The latest patch also includes the fix to the other bug you reporting in
 [comment:135].

--
Ticket URL: <https://core.trac.wordpress.org/ticket/37974#comment:141>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list