Ensure we globally replace [ and ] in customizer control IDs, to match the PHP.
props westonruter. fixes #25238. git-svn-id: https://develop.svn.wordpress.org/trunk@25680 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
8cd52fe580
commit
a59daf91cf
@ -36,7 +36,7 @@
|
||||
$.extend( this, options || {} );
|
||||
|
||||
this.id = id;
|
||||
this.selector = '#customize-control-' + id.replace( ']', '' ).replace( '[', '-' );
|
||||
this.selector = '#customize-control-' + id.replace( /\]/g, '' ).replace( /\[/g, '-' );
|
||||
this.container = $( this.selector );
|
||||
|
||||
settings = $.map( this.params.settings, function( value ) {
|
||||
|
Loading…
Reference in New Issue
Block a user