Make WordPress Core


Ignore:
Timestamp:
11/30/2010 09:50:57 PM (14 years ago)
Author:
ryan
Message:

Add bump down for menu bar. Allow themes to add a custom bump callback. Props ocean90. fixes #15592

File:
1 edited

Legend:

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

    r16610 r16636  
    286286 *
    287287 * @since 3.1.0
    288  * @todo move js into a admin-bar js file
    289288 *
    290289 */
    291290function wp_admin_bar_header() {
    292291    ?>
    293     <style type="text/css" media="print">#wpadminbar { display:none; }</style>
     292<style type="text/css" media="print">#wpadminbar { display:none; }</style>
     293    <?php
     294}
     295
     296/**
     297 * Default admin bar callback.
     298 *
     299 * @since 3.1.0
     300 *
     301 */
     302function _admin_bar_bump_cb() {
     303    ?>
     304<style type="text/css">body { padding-top: 28px !important; }</style>
    294305    <?php
    295306}
Note: See TracChangeset for help on using the changeset viewer.