Make WordPress Core

Opened 12 years ago

Closed 12 years ago

#27787 closed defect (bug) (fixed)

Show some Customizer buttons only when needed

Reported by: pavelevap Owned by: ocean90
Priority: low Milestone: 4.2
Component: Customize Version: 3.9
Severity: normal Keywords: has-patch
Cc: Focuses: ui

Description

Buttons "Randomize uploaded headers", "Randomize suggested headers" and "Reorder" (for widgets) should be visible only for more than 1 item (for header images) and more than zero item (for widgets)?

Attachments (1)

27787.diff (487 bytes ) - added by celloexpressions 12 years ago.
Hide the reorder-widgets button when a widget area is empty.

Download all attachments as: .zip

Change History (5)

#1 @ocean90
12 years ago

  • Component GeneralAppearance
  • Priority normallow

#2 @ehg
12 years ago

With regard to the Header randomize button, it is intentionally shown when there is only one image for discoverability reasons. See https://core.trac.wordpress.org/ticket/21785#comment:37

@celloexpressions
12 years ago

Hide the reorder-widgets button when a widget area is empty.

#3 @celloexpressions
12 years ago

  • Focuses ui added
  • Keywords has-patch added
  • Milestone Awaiting Review4.2

Let's keep the randomize headers button per ehg.

For widgets, I've attached a patch that hides the reorder toggle when there are no widgets. In this patch, the button is shown when there is only one widget in the sidebar, for the move-to-widget-area functionality.

#4 @ocean90
12 years ago

  • Owner set to ocean90
  • Resolutionfixed
  • Status newclosed

In 31255:

Customizer: Hide the reorder-widgets button when a widget area is empty.

props celloexpressions.
fixes #27787.

Note: See TracTickets for help on using tickets.