Make WordPress Core


Ignore:
Timestamp:
05/07/2012 08:03:39 PM (14 years ago)
Author:
koopersmith
Message:

Theme Customizer: Use a internal global _wpCustomizeSettings object for wp.customize.settings to prevent script race conditions in IE (which blocked interaction with the preview). see #20582, #19910.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/customize-controls.php

    r20645 r20737  
    116116        ?>
    117117        <script type="text/javascript">
    118                 (function() {
    119                         if ( typeof wp === 'undefined' || ! wp.customize )
    120                                 return;
    121 
    122                         wp.customize.settings = <?php echo json_encode( $settings ); ?>;
    123                 })();
     118                var _wpCustomizeSettings = <?php echo json_encode( $settings ); ?>;
    124119        </script>
    125120</body>
Note: See TracChangeset for help on using the changeset viewer.