Last active
January 19, 2016 20:51
-
-
Save rugor/2661610011b50cdef678 to your computer and use it in GitHub Desktop.
PHP: WordPress functions.php, fix for Chrome 45 Admin Dashboard bug #rugor #st
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_action('admin_enqueue_scripts', 'chrome_fix'); | |
function chrome_fix() { | |
if ( strpos( $_SERVER['HTTP_USER_AGENT'], 'Chrome' ) !== false ) | |
wp_add_inline_style( 'wp-admin', '#adminmenu { transform: translateZ(0); }' ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment