智能摘要 DeepSeek
After updating WordPress to version 4.2, users encountered an issue where the top menu could not be opened. The problem stemmed from the display options in the WordPress后台菜单设置,右上角的"显示选项"菜单无法下拉。 The solution involves modifying the functions.php file with a custom function to remove help tabs, as explained by a workaround provided by a developer named 方总 on his blog.
WordPress4.2版本更新后..相信大家都发现顶部菜单无法打开..
前几天,有不少朋友问苏醒..
位于WordPress后台【外观】-【菜单】中,右上角的【显示选项】无法下拉。开始我还以为我刚更新的traveler主题哪里出问题了。。
今天,群里的大神方总找到了顶部菜单无法打开的问题所在,并给出了解决方式。
说直观点就是关掉显示选项旁边的帮助选项卡即可(4.2以上版本的\wp-admin\nav-menus.php文件有问题)
将下面代码放在主题的functions.php文件之前任意位置即可。
function Uazoh_remove_help_tabs($old_help, $screen_id, $screen){ $screen->remove_help_tabs(); return $old_help; } add_filter('contextual_help', 'Uazoh_remove_help_tabs', 10, 3 );
以上代码转自:方总http://www.uazoh.com/archives/1700.html
评论