[wp-trac] [WordPress Trac] #22714: Disable 'Insert gallery' and 'Set featured image' if nothing is queued

WordPress Trac noreply at wordpress.org
Tue Dec 4 07:18:46 UTC 2012


#22714: Disable 'Insert gallery' and 'Set featured image' if nothing is queued
-------------------------+--------------------------
 Reporter:  nacin        |       Type:  defect (bug)
   Status:  new          |   Priority:  normal
Milestone:  3.5          |  Component:  Media
  Version:  trunk        |   Severity:  minor
 Keywords:  needs-patch  |
-------------------------+--------------------------
 1. If you remove all images from a gallery, the "Insert gallery" button
 should be grayed out, forcing you to add more images or cancel it.
 Otherwise you end up with [gallery ids=""].

 2. You can click "Set featured image" without having selected a featured
 image. Again, the button should be grayed out. It closes the modal and
 fires an unnecessary but not damaging ajax request to delete the featured
 image. (The XHR returns as unsuccessful as there was nothing to delete.)

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/22714>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list