Ticket #15507: 14772.wp_admin_body_style.patch
File 14772.wp_admin_body_style.patch, 2.1 KB (added by , 14 years ago) |
---|
-
wp-includes/admin-bar.php
291 291 <?php 292 292 } 293 293 294 // @TODO do we still need this in core?295 function wp_admin_body_style() {296 ?>297 <style type="text/css">298 <?php299 300 if (301 ( empty( $_GET['nobump'] ) || is_admin() ) &&302 ! strpos( $_SERVER['REQUEST_URI'], 'media-upload.php' )303 ) :304 ?>305 body { padding-top: 28px !important; }306 <?php307 endif;308 309 if ( in_array( get_current_theme(), array('H3', 'H4', 'The Journalist v1.9') ) ) :310 ?>311 body { padding-top: 28px; background-position: 0px 28px; }312 <?php313 endif;314 315 ?>316 </style>317 <?php318 }319 320 294 /** 321 295 * Determine whether the admin bar should be showing. 322 296 * -
wp-includes/class-wp-admin-bar.php
33 33 $this->user->locale = get_locale(); 34 34 35 35 add_action( 'wp_head', 'wp_admin_bar_header' ); 36 add_action( 'wp_head', 'wp_admin_body_style');37 36 38 37 add_action( 'admin_head', 'wp_admin_bar_header' ); 39 add_action( 'admin_head', 'wp_admin_body_style');40 38 41 39 wp_enqueue_script( 'admin-bar' ); 42 40 wp_enqueue_style( 'admin-bar' ); -
wp-admin/admin-header.php
91 91 92 92 if ( get_user_setting('mfold') == 'f' ) 93 93 $admin_body_class .= ' folded'; 94 95 if ( is_admin_bar_showing() ) 96 $admin_body_class .= ' admin-bar'; 94 97 95 98 if ( $is_iphone ) { ?> 96 99 <style type="text/css">.row-actions{visibility:visible;}</style> -
wp-admin/css/wp-admin.dev.css
1140 1140 min-width: 785px; 1141 1141 } 1142 1142 1143 body.admin-bar { 1144 padding-top: 28px; 1145 } 1146 1143 1147 .narrow { 1144 1148 width: 70%; 1145 1149 margin-bottom: 40px;