WordPress admin menu display glitch in Google Chrome

后端 未结 6 1513
轻奢々
轻奢々 2021-02-05 19:37

A recent update to Google Chrome seems to be causing issues with my WordPress admin menus.

This is happening on all sites, whether in local development or on t

6条回答
  •  广开言路
    2021-02-05 20:01

    A different variant of raffjones answer. Add this to your theme's functions.php file, and it will patch the issue. I have tested with success in Chrome 45 Mac:

    // Patch for WP Admin rendering bug in Chrome 45+
    function admin_menu_chrome_patch() {
        echo '';
    }
    add_action('admin_head', 'admin_menu_chrome_patch');
    

提交回复
热议问题