[wp-trac] [WordPress Trac] #39246: Theme deletion has a JS error that prevents multiple themes from being deleted.

WordPress Trac noreply at wordpress.org
Mon Dec 12 07:02:47 UTC 2016


#39246: Theme deletion has a JS error that prevents multiple themes from being
deleted.
--------------------------+-----------------------------
 Reporter:  Hristo Sg     |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Themes        |    Version:  trunk
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 In order to recreate the problem:
 - install multiple themes
 - delete a theme and close the window
 - try deleting a second one - it fails

 on the first deletion, I see a JS error in the console:
 Error: Syntax error, unrecognized expression: [data-slug="twentyfifteen"

 In the wp-admin/js/theme.js there is a line:

 $( '[data-slug="' + response.slug + '"' ).css( { backgroundColor:'#faafaa'
 } ).fadeOut( 350, function() {

 in which I believe the shortcode is not closed and should be

 $( '[data-slug="' + response.slug + '"]' ).css( {
 backgroundColor:'#faafaa' } ).fadeOut( 350, function() {

 I was testing on Safari Version 10.0.1 (12602.2.14.0.7)

--
Ticket URL: <https://core.trac.wordpress.org/ticket/39246>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list