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/class-wp-customize.php

    r20649 r20737  
    210210        ?>
    211211        <script type="text/javascript">
    212             (function() {
    213                 if ( typeof wp === 'undefined' || ! wp.customize )
    214                     return;
    215 
    216                 wp.customize.settings = <?php echo json_encode( $settings ); ?>;
    217             })();
     212            var _wpCustomizeSettings = <?php echo json_encode( $settings ); ?>;
    218213        </script>
    219214        <?php
Note: See TracChangeset for help on using the changeset viewer.