Remove wp_admin_body_style(). Props ocean90. fixes #15507
git-svn-id: http://svn.automattic.com/wordpress/trunk@16600 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
50cb4c26c6
commit
b1e7c513b7
|
@ -91,6 +91,9 @@ do_action('admin_head');
|
|||
|
||||
if ( get_user_setting('mfold') == 'f' )
|
||||
$admin_body_class .= ' folded';
|
||||
|
||||
if ( is_admin_bar_showing() )
|
||||
$admin_body_class .= ' admin-bar';
|
||||
|
||||
if ( $is_iphone ) { ?>
|
||||
<style type="text/css">.row-actions{visibility:visible;}</style>
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1140,6 +1140,10 @@ body.wp-admin {
|
|||
min-width: 785px;
|
||||
}
|
||||
|
||||
body.admin-bar {
|
||||
padding-top: 28px;
|
||||
}
|
||||
|
||||
.narrow {
|
||||
width: 70%;
|
||||
margin-bottom: 40px;
|
||||
|
|
|
@ -291,32 +291,6 @@ function wp_admin_bar_header() {
|
|||
<?php
|
||||
}
|
||||
|
||||
// @TODO do we still need this in core?
|
||||
function wp_admin_body_style() {
|
||||
?>
|
||||
<style type="text/css">
|
||||
<?php
|
||||
|
||||
if (
|
||||
( empty( $_GET['nobump'] ) || is_admin() ) &&
|
||||
! strpos( $_SERVER['REQUEST_URI'], 'media-upload.php' )
|
||||
) :
|
||||
?>
|
||||
body { padding-top: 28px !important; }
|
||||
<?php
|
||||
endif;
|
||||
|
||||
if ( in_array( get_current_theme(), array('H3', 'H4', 'The Journalist v1.9') ) ) :
|
||||
?>
|
||||
body { padding-top: 28px; background-position: 0px 28px; }
|
||||
<?php
|
||||
endif;
|
||||
|
||||
?>
|
||||
</style>
|
||||
<?php
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine whether the admin bar should be showing.
|
||||
*
|
||||
|
|
|
@ -33,10 +33,8 @@ class WP_Admin_Bar {
|
|||
$this->user->locale = get_locale();
|
||||
|
||||
add_action( 'wp_head', 'wp_admin_bar_header' );
|
||||
add_action( 'wp_head', 'wp_admin_body_style');
|
||||
|
||||
add_action( 'admin_head', 'wp_admin_bar_header' );
|
||||
add_action( 'admin_head', 'wp_admin_body_style');
|
||||
|
||||
wp_enqueue_script( 'admin-bar' );
|
||||
wp_enqueue_style( 'admin-bar' );
|
||||
|
|
Loading…
Reference in New Issue