WordPress.org

Make WordPress Core

Opened 7 years ago

Closed 6 years ago

#27787 closed defect (bug) (fixed)

Show some Customizer buttons only when needed

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

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 6 years ago.
Hide the reorder-widgets button when a widget area is empty.

Download all attachments as: .zip

Change History (5)

#1 @ocean90
7 years ago

  • Component changed from General to Appearance
  • Priority changed from normal to low

#2 @ehg
7 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
6 years ago

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

#3 @celloexpressions
6 years ago

  • Focuses ui added
  • Keywords has-patch added
  • Milestone changed from Awaiting Review to 4.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
6 years ago

  • Owner set to ocean90
  • Resolution set to fixed
  • Status changed from new to closed

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.