[wp-trac] [WordPress Trac] #32810: Customizer Menus: Indicate when there are no items

WordPress Trac noreply at wordpress.org
Tue Jun 30 01:40:02 UTC 2015

#32810: Customizer Menus: Indicate when there are no items
 Reporter:  swissspidy               |       Owner:
     Type:  defect (bug)             |      Status:  new
 Priority:  normal                   |   Milestone:  4.3
Component:  Customize                |     Version:  trunk
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-refresh  |     Focuses:  javascript
Changes (by celloexpressions):

 * keywords:  has-patch 2nd-opinion => has-patch needs-refresh
 * focuses:   => javascript
 * version:   => trunk
 * milestone:  Awaiting Review => 4.3


 A better name for the template would probably be `no-available-menu-
 items`. But I'm thinking it would be simpler if we just have a string that
 we use if there are no items available in JS and write it with `<p>` tags
 rather than rendering from a template. See how the search section does it
 (and we may be able to re-use the sam text that it uses).

 Also, I haven't tested the patch yet but I believe that it will currently
 show that text after the last page of available items has been loaded. The
 text should only be written if the requested page is the first one and
 there are no items.

 @rittesh.patel: do you think you could create an updated patch that
 addresses those issues?

Ticket URL: <https://core.trac.wordpress.org/ticket/32810#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list