_admin_bar_bump_cb()

In this article

This function has been deprecated. Use wp_enqueue_admin_bar_bump_styles() instead.

Prints default admin bar callback.

Source

function _admin_bar_bump_cb() {
	_deprecated_function( __FUNCTION__, '6.4.0', 'wp_enqueue_admin_bar_bump_styles' );
	$type_attr = current_theme_supports( 'html5', 'style' ) ? '' : ' type="text/css"';
	?>
	<style<?php echo $type_attr; ?> media="screen">
	html { margin-top: 32px !important; }
	@media screen and ( max-width: 782px ) {
	  html { margin-top: 46px !important; }
	}
	</style>
	<?php
}

Changelog

VersionDescription
6.4.0Use wp_enqueue_admin_bar_bump_styles() instead.
3.1.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.