mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Add bump down for menu bar. Allow themes to add a custom bump callback. Props ocean90. fixes #15592
git-svn-id: https://develop.svn.wordpress.org/trunk@16636 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -285,12 +285,23 @@ function wp_admin_bar_updates_menu() {
|
||||
* Style and scripts for the admin bar.
|
||||
*
|
||||
* @since 3.1.0
|
||||
* @todo move js into a admin-bar js file
|
||||
*
|
||||
*/
|
||||
function wp_admin_bar_header() {
|
||||
?>
|
||||
<style type="text/css" media="print">#wpadminbar { display:none; }</style>
|
||||
<style type="text/css" media="print">#wpadminbar { display:none; }</style>
|
||||
<?php
|
||||
}
|
||||
|
||||
/**
|
||||
* Default admin bar callback.
|
||||
*
|
||||
* @since 3.1.0
|
||||
*
|
||||
*/
|
||||
function _admin_bar_bump_cb() {
|
||||
?>
|
||||
<style type="text/css">body { padding-top: 28px !important; }</style>
|
||||
<?php
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user