Ticket #17242: 17242.masonry.diff
File 17242.masonry.diff, 1.5 KB (added by , 11 years ago) |
---|
-
wp-includes/script-loader.php
165 165 $scripts->add( 'jquery-hotkeys', "/wp-includes/js/jquery/jquery.hotkeys$suffix.js", array('jquery'), '0.0.2m', 1 ); 166 166 $scripts->add( 'jquery-table-hotkeys', "/wp-includes/js/jquery/jquery.table-hotkeys$suffix.js", array('jquery', 'jquery-hotkeys'), false, 1 ); 167 167 168 $scripts->add( 'jquery-masonry', "/wp-includes/js/jquery.masonry$suffix.js", array('jquery'), '2.1.02', 1 ); 169 168 170 $scripts->add( 'thickbox', "/wp-includes/js/thickbox/thickbox.js", array('jquery'), '3.1-20111117', 1 ); 169 171 $scripts->localize( 'thickbox', 'thickboxL10n', array( 170 172 'next' => __('Next >'), -
wp-admin/custom-header.php
140 140 function js_includes() { 141 141 $step = $this->step(); 142 142 143 if ( 1 == $step ) 144 wp_enqueue_script('jquery-masonry'); 143 145 if ( ( 1 == $step || 3 == $step ) && $this->header_text() ) 144 146 wp_enqueue_script('farbtastic'); 145 147 elseif ( 2 == $step ) … … 637 639 <?php endif; ?> 638 640 </tbody> 639 641 </table> 640 642 <script type="text/javascript"> 643 jQuery(function() { 644 jQuery('.available-headers').masonry({ 645 itemSelector: '.default-header', 646 }); 647 }); 648 </script> 641 649 <?php if ( $this->header_text() ) : ?> 642 650 <table class="form-table"> 643 651 <tbody>