Ticket #15750: 15750.patch
File 15750.patch, 5.0 KB (added by , 15 years ago) |
---|
-
wp-admin/includes/template.php
1536 1536 */ 1537 1537 function iframe_header( $title = '', $limit_styles = false ) { 1538 1538 show_admin_bar( false ); 1539 global $hook_suffix ;1539 global $hook_suffix, $current_screen, $wp_locale; 1540 1540 ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 1541 1541 <html xmlns="http://www.w3.org/1999/xhtml" <?php do_action('admin_xml_ns'); ?> <?php language_attributes(); ?>> 1542 1542 <head> … … 1547 1547 if ( ! $limit_styles ) 1548 1548 wp_enqueue_style( 'wp-admin' ); 1549 1549 wp_enqueue_style( 'colors' ); 1550 1551 $admin_body_class = preg_replace('/[^a-z0-9_-]+/i', '-', $hook_suffix); 1550 1552 ?> 1551 1553 <script type="text/javascript"> 1552 1554 //<![CDATA[ 1553 1555 addLoadEvent = function(func){if(typeof jQuery!="undefined")jQuery(document).ready(func);else if(typeof wpOnload!='function'){wpOnload=func;}else{var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}}; 1554 1556 function tb_close(){var win=window.dialogArguments||opener||parent||top;win.tb_remove();} 1557 var userSettings = { 1558 'url': '<?php echo SITECOOKIEPATH; ?>', 1559 'uid': '<?php if ( ! isset($current_user) ) $current_user = wp_get_current_user(); echo $current_user->ID; ?>', 1560 'time':'<?php echo time() ?>' 1561 }, 1562 ajaxurl = '<?php echo admin_url('admin-ajax.php'); ?>', 1563 pagenow = '<?php echo $current_screen->id; ?>', 1564 typenow = '<?php if ( isset($current_screen->post_type) ) echo $current_screen->post_type; ?>', 1565 adminpage = '<?php echo $admin_body_class; ?>', 1566 thousandsSeparator = '<?php echo addslashes( $wp_locale->number_format['thousands_sep'] ); ?>', 1567 decimalPoint = '<?php echo addslashes( $wp_locale->number_format['decimal_point'] ); ?>', 1568 isRtl = <?php echo (int) is_rtl(); ?>; 1555 1569 //]]> 1570 //]]> 1556 1571 </script> 1557 1572 <?php 1558 1573 do_action('admin_print_styles'); 1559 1574 do_action('admin_print_scripts'); 1560 1575 do_action('admin_head'); 1561 1562 $admin_body_class = preg_replace('/[^a-z0-9_-]+/i', '-', $hook_suffix);1563 1576 ?> 1564 1577 </head> 1565 1578 <body<?php if ( isset($GLOBALS['body_id']) ) echo ' id="' . $GLOBALS['body_id'] . '"'; ?> class="no-js <?php echo $admin_body_class; ?>"> -
wp-admin/js/media-upload.dev.js
46 46 tbWindow.css({'top': 20 + adminbar_height + 'px','margin-top':'0'}); 47 47 }; 48 48 49 return $(' a.thickbox').each( function() {49 return $('#media-buttons a.thickbox').each( function() { 50 50 var href = $(this).attr('href'); 51 51 if ( ! href ) return; 52 52 href = href.replace(/&width=[0-9]+/g, ''); -
wp-admin/js/plugin-install.dev.js
1 1 /* Plugin Browser Thickbox related JS*/ 2 2 jQuery(document).ready(function($) { 3 3 var thickDims = function() { 4 var tbWindow = $('#TB_window'), width = $(window).width(), H = $(window).height(), W = ( 720 < width ) ? 720 : width ;4 var tbWindow = $('#TB_window'), width = $(window).width(), H = $(window).height(), W = ( 720 < width ) ? 720 : width, adminbar_height = 0; 5 5 6 if ( $('body.admin-bar').length ) 7 adminbar_height = 28; 8 6 9 if ( tbWindow.size() ) { 7 tbWindow.width( W - 50 ).height( H - 45 );8 $('#TB_iframeContent').width( W - 50 ).height( H - 75 );10 tbWindow.width( W - 50 ).height( H - 45 - adminbar_height ); 11 $('#TB_iframeContent').width( W - 50 ).height( H - 75 - adminbar_height ); 9 12 tbWindow.css({'margin-left': '-' + parseInt((( W - 50 ) / 2),10) + 'px'}); 10 if ( ! ( $.browser.msie && $.browser.version.substr(0,1) < 7 ))11 tbWindow.css({'top': '20px','margin-top':'0'});13 if ( typeof document.body.style.maxWidth != 'undefined' ) 14 tbWindow.css({'top': 20 + adminbar_height + 'px','margin-top':'0'}); 12 15 }; 13 16 14 17 return $('#dashboard_plugins a.thickbox, .plugins a.thickbox').each( function() { … … 17 20 return; 18 21 href = href.replace(/&width=[0-9]+/g, ''); 19 22 href = href.replace(/&height=[0-9]+/g, ''); 20 $(this).attr( 'href', href + '&width=' + ( W - 80 ) + '&height=' + ( H - 85 ) );23 $(this).attr( 'href', href + '&width=' + ( W - 80 ) + '&height=' + ( H - 85 - adminbar_height ) ); 21 24 }); 22 25 }; 23 26 27 $(window).resize(function(){ thickDims(); }); 28 24 29 thickDims().click( function() { 25 30 tb_click.call(this); 26 31 -
wp-admin/network/index.php
35 35 wp_dashboard_setup(); 36 36 37 37 wp_enqueue_script( 'dashboard' ); 38 wp_enqueue_script( 'plugin-install' ); 38 39 wp_admin_css( 'dashboard' ); 40 wp_admin_css( 'plugin-install' ); 39 41 add_thickbox(); 40 42 41 43 add_screen_option('layout_columns', array('max' => 4, 'default' => 2) );