Make WordPress Core

Changeset 25680


Ignore:
Timestamp:
10/03/2013 01:45:39 AM (13 years ago)
Author:
nacin
Message:

Ensure we globally replace [ and ] in customizer control IDs, to match the PHP.

props westonruter.
fixes #25238.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/js/customize-controls.js

    r25027 r25680  
    3737
    3838            this.id = id;
    39             this.selector = '#customize-control-' + id.replace( ']', '' ).replace( '[', '-' );
     39            this.selector = '#customize-control-' + id.replace( /\]/g, '' ).replace( /\[/g, '-' );
    4040            this.container = $( this.selector );
    4141
Note: See TracChangeset for help on using the changeset viewer.