Themes: Add missing square bracket in jQuery selector.
Fixes a bug in Safari where the UI wasn't updated after deleting a theme due to the incomplete selector. Props Hristo Sg. Merges [39586] to the 4.7 branch. Fixes #39246. Built from https://develop.svn.wordpress.org/branches/4.7@39587 git-svn-id: http://core.svn.wordpress.org/branches/4.7@39527 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
ca4d60134b
commit
3db97bd725
|
@ -806,7 +806,7 @@ themes.view.Details = wp.Backbone.View.extend({
|
|||
|
||||
$( document ).one( 'wp-theme-delete-success', function( event, response ) {
|
||||
_this.$el.find( '.close' ).trigger( 'click' );
|
||||
$( '[data-slug="' + response.slug + '"' ).css( { backgroundColor:'#faafaa' } ).fadeOut( 350, function() {
|
||||
$( '[data-slug="' + response.slug + '"]' ).css( { backgroundColor:'#faafaa' } ).fadeOut( 350, function() {
|
||||
$( this ).remove();
|
||||
_themes.data.themes = _.without( _themes.data.themes, _.findWhere( _themes.data.themes, { id: response.slug } ) );
|
||||
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.7.1-alpha-39585';
|
||||
$wp_version = '4.7.1-alpha-39587';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue