[wp-trac] [WordPress Trac] #40589: Media: Replace button enabled when no media item selected

WordPress Trac noreply at wordpress.org
Thu Jun 15 09:37:55 UTC 2017


#40589: Media: Replace button enabled when no media item selected
----------------------------------------------+----------------------------
 Reporter:  timmydcrawford                    |       Owner:
     Type:  defect (bug)                      |  adamsilverstein
 Priority:  normal                            |      Status:  closed
Component:  Media                             |   Milestone:  Future
 Severity:  normal                            |  Release
 Keywords:  has-patch has-screenshots commit  |     Version:
                                              |  Resolution:  fixed
                                              |     Focuses:  javascript
----------------------------------------------+----------------------------
Changes (by adamsilverstein):

 * owner:   => adamsilverstein
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"40902"]:
 {{{
 #!CommitTicketReference repository="" revision="40902"
 Media: Disable the edit image->replace button when no item selected.

 On the edit media screen, ensure that the 'replace' button is disabled
 until a media item is selected. Fix an issue where clicking the button
 with no item selected threw a JavaScript error and failed to work.

 Props timmydcrawford, subrataemfluence, psiico.
 Fixes #40589.
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/40589#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list