Make WordPress Core


Ignore:
Timestamp:
11/26/2010 10:05:54 PM (13 years ago)
Author:
ryan
Message:

Remove wp_admin_body_style(). Props ocean90. fixes #15507

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/admin-bar.php

    r16599 r16600  
    292292}
    293293
    294 // @TODO do we still need this in core?
    295 function wp_admin_body_style() {
    296     ?>
    297     <style type="text/css">
    298         <?php
    299 
    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             <?php
    307         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             <?php
    313         endif;
    314 
    315         ?>
    316     </style>
    317     <?php
    318 }
    319 
    320294/**
    321295 * Determine whether the admin bar should be showing.
Note: See TracChangeset for help on using the changeset viewer.