[wp-trac] [WordPress Trac] #29172: Customizer Sections and Panels default to being at the top, not the bottom

WordPress Trac noreply at wordpress.org
Sun Aug 10 20:39:36 UTC 2014


#29172: Customizer Sections and Panels default to being at the top, not the bottom
------------------------------+-----------------------
 Reporter:  celloexpressions  |      Owner:
     Type:  defect (bug)      |     Status:  new
 Priority:  normal            |  Milestone:  4.0
Component:  General           |    Version:  3.4
 Severity:  normal            |   Keywords:  has-patch
  Focuses:                    |
------------------------------+-----------------------
 One of the concerns with panels always being at the top of the Customizer
 is that they push down the title & tagline section. But new Customizer
 sections that don't specify a priority get a default priority of 10, which
 is before all core sections. We should change the default to be at the
 bottom, after all core sections and with some breathing room for custom
 sections that want to be before unspecified/default ones. Panels inherit
 this same priority, since they're implemented as a subclass of sections.
 The lowest core section is static front page at 120; I'm suggesting 160
 for default (all of the core section priorities are multiples of 20, that
 leaves a "core" space in between, plus all intermediate values).

 This came up during dev chat when discussing our options for #28979 at
 length, [http://irclogs.wordpress.org/chanlog.php?channel=wordpress-
 dev&day=2014-08-06&sort=asc#m902293 see logs]. Putting on 4.0 per that
 discussion, #28979, and because this is a really simple, one-character
 change/fix. Yes, it moves existing sections around that didn't specify
 priorities, and yes, that's okay because they didn't specify a priority
 and things are moving around a bit anyway in 4.0 with panels. I'm much
 more comfortable with suggesting not specifying your own priority (which
 you usually shouldn't really need to do in a plugin) if the default is
 160.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/29172>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list