Ticket #20346: masonry2.diff
| File masonry2.diff, 2.0 KB (added by zamoose, 8 months ago) |
|---|
-
wp-includes/script-loader.php
172 172 $scripts->add( 'jquery-table-hotkeys', "/wp-includes/js/jquery/jquery.table-hotkeys$suffix.js", array('jquery', 'jquery-hotkeys'), false, 1 ); 173 173 $scripts->add( 'jquery-touch-punch', "/wp-includes/js/jquery/jquery.ui.touch-punch.js", array('jquery-ui-widget', 'jquery-ui-mouse'), '0.2.2', 1 ); 174 174 175 $scripts->add( 'jquery-masonry', "/wp-includes/js/jquery.masonry$suffix.js", array('jquery'), '2.1.03', 1 ); 176 175 177 $scripts->add( 'thickbox', "/wp-includes/js/thickbox/thickbox.js", array('jquery'), '3.1-20111117', 1 ); 176 178 did_action( 'init' ) && $scripts->localize( 'thickbox', 'thickboxL10n', array( 177 179 'next' => __('Next >'), -
wp-admin/custom-header.php
169 169 */ 170 170 function js_includes() { 171 171 $step = $this->step(); 172 172 173 173 if ( ( 1 == $step || 3 == $step ) ) { 174 174 add_thickbox(); 175 175 wp_enqueue_script( 'media-upload' ); 176 176 wp_enqueue_script( 'custom-header' ); 177 if ( current_theme_supports( 'custom-header', 'header-text' ) ) 178 wp_enqueue_script('farbtastic'); 177 if ( current_theme_supports( 'custom-header', 'header-text' ) ) { 178 wp_enqueue_script( 'farbtastic' ); 179 wp_enqueue_script( 'jquery-masonry' ); 180 } 179 181 } elseif ( 2 == $step ) { 180 182 wp_enqueue_script('imgareaselect'); 181 183 } … … 393 395 }); 394 396 }); 395 397 398 var container = $('.available-headers'); 399 container.imagesLoaded(function(){ 400 container.masonry({ 401 itemSelector: '.default-header', 402 columnWidth: 230 403 }); 404 }); 405 396 406 farbtastic = $.farbtastic('#color-picker', function(color) { pickColor(color); }); 397 407 <?php if ( display_header_text() ) { ?> 398 408 pickColor('#<?php echo get_header_textcolor(); ?>');
