WordPress.org

Make WordPress Core

Ticket #19196: 19196.3.patch

File 19196.3.patch, 1.6 KB (added by SergeyBiryukov, 3 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-includes/admin-bar.php

     
    697697} 
    698698 
    699699/** 
     700 * Admin bar callback for admin area. 
     701 * 
     702 * @since 3.4.0 
     703 * 
     704 */ 
     705function _admin_bar_bump() { ?> 
     706<style type="text/css" media="screen"> 
     707        html { padding-top: 28px; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } 
     708</style> 
     709<?php 
     710} 
     711 
     712/** 
    700713 * Set the display status of the admin bar. 
    701714 * 
    702715 * This can be called immediately upon plugin load. It does not need to be called from a function hooked to the init action. 
  • 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_bump' ); 
     51 
    5052                wp_enqueue_script( 'admin-bar' ); 
    5153                wp_enqueue_style( 'admin-bar' ); 
    5254