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:
Andrew Nacin 2013-10-03 01:45:39 +00:00
parent 8cd52fe580
commit a59daf91cf
1 changed files with 1 additions and 1 deletions

View File

@ -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 ) {