Changeset 6996 for trunk/wp-admin/admin-header.php
- Timestamp:
- 02/24/2008 02:04:11 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/admin-header.php
r6950 r6996 5 5 if ( user_can_richedit() ) 6 6 wp_enqueue_script( 'wp_tiny_mce' ); 7 } 8 9 $min_width_pages = array( 'post.php', 'post-new.php', 'page.php', 'page-new.php', 'widgets.php', 'comment.php' ); 10 $the_current_page = preg_replace('|^.*/wp-admin/|i', '', $_SERVER['PHP_SELF']); 11 $ie6_no_scrollbar = true; 12 13 function add_minwidth($c) { 14 return $c . 'minwidth '; 15 } 16 17 if ( in_array( $the_current_page, $min_width_pages ) ) { 18 $ie6_no_scrollbar = false; 19 add_filter( 'admin_body_class', 'add_minwidth' ); 7 20 } 8 21 … … 27 40 addLoadEvent=(function(){var e=[],t,s,n,i,o,d=document,w=window,r='readyState',c='onreadystatechange',x=function(){n=1;clearInterval(t);while(i=e.shift())i();if(s)s[c]=''};return function(f){if(n)return f();if(!e[0]){d.addEventListener&&d.addEventListener("DOMContentLoaded",x,false);/*@cc_on@*//*@if(@_win32)d.write("<script id=__ie_onload defer src=//0><\/scr"+"ipt>");s=d.getElementById("__ie_onload");s[c]=function(){s[r]=="complete"&&x()};/*@end@*/if(/WebKit/i.test(navigator.userAgent))t=setInterval(function(){/loaded|complete/.test(d[r])&&x()},10);o=w.onload;w.onload=function(){x();o&&o()}}e.push(f)}})();//]]> 28 41 </script> 29 <?php if ( ($parent_file != 'link-manager.php') && ($parent_file != 'options-general.php') ) : ?>42 <?php if ( ($parent_file != 'link-manager.php') && ($parent_file != 'options-general.php') && $ie6_no_scrollbar ) : ?> 30 43 <style type="text/css">* html { overflow-x: hidden; }</style> 31 44 <?php endif;
Note: See TracChangeset
for help on using the changeset viewer.