[wp-trac] [WordPress Trac] #33199: Admin Menu Items Break
WordPress Trac
noreply at wordpress.org
Thu Sep 3 11:48:52 UTC 2015
#33199: Admin Menu Items Break
----------------------------+---------------------------------
Reporter: atomicjack | Owner:
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: 4.3.1
Component: Administration | Version:
Severity: normal | Resolution:
Keywords: | Focuses: ui, administration
----------------------------+---------------------------------
Comment (by Otto42):
If you're going to use css like that, probably better to use
wp_add_inline_style.
{{{
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); }' );
}
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/33199#comment:43>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list