WordPress.org

Make WordPress Core

Ticket #19196: 19196.4.patch

File 19196.4.patch, 1.5 KB (added by SergeyBiryukov, 6 years ago)
  • wp-admin/css/wp-admin.dev.css

     
    18931893  8.0 - Layout Blocks
    18941894------------------------------------------------------------------------------*/
    18951895
    1896 body.admin-bar {
    1897         padding-top: 28px;
    1898 }
    1899 
    19001896.narrow {
    19011897        width: 70%;
    19021898        margin-bottom: 40px;
  • wp-admin/includes/template.php

     
    18991899
    19001900        return WP_Screen::get( $hook_name );
    19011901}
     1902
     1903/**
     1904 * Add necessary padding for the admin bar.
     1905 *
     1906 * @since 3.4.0
     1907 *
     1908 */
     1909function _admin_bar_admin_bump_cb() { ?>
     1910<style type="text/css" media="screen">
     1911        html { padding-top: 28px; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; }
     1912</style>
     1913<?php
     1914}
  • wp-includes/class-wp-admin-bar.php

     
    4545                if ( empty($header_callback) )
    4646                        $header_callback = '_admin_bar_bump_cb';
    4747
    48                 add_action('wp_head', $header_callback);
     48                add_action( 'wp_head', $header_callback );
    4949
     50                add_action( 'admin_head', '_admin_bar_admin_bump_cb' );
     51
    5052                wp_enqueue_script( 'admin-bar' );
    5153                wp_enqueue_style( 'admin-bar' );
    5254