mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 07:40:07 +00:00
Theme Customizer: Sanitize selectors by transforming square brackets into dashes. see #19910.
This both better conforms to the CSS spec and prevents bugs from occurring in JavaScript selector engines. git-svn-id: https://develop.svn.wordpress.org/trunk@20299 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -48,7 +48,8 @@
|
||||
$.extend( this, options || {} );
|
||||
|
||||
this.id = id;
|
||||
this.container = $( '#customize-control-' + id );
|
||||
this.selector = '#customize-control-' + id.replace( ']', '' ).replace( '[', '-' );
|
||||
this.container = $( this.selector );
|
||||
|
||||
settings = $.map( this.params.settings, function( value ) {
|
||||
return value;
|
||||
|
||||
Reference in New Issue
Block a user