由于某些原因,Wordpress admin没有通过加载脚本加载所有必需的脚本。php。这会导致文本编辑器中缺少“视觉/文本”选项卡。“b”、“i”、“link”等按钮仍然存在,并可用于HTML编辑器。我已经进行了三次检查,所有用户都已设置为使用可视化编辑器。
Here is what load-scripts.php is loading on the broken site.
https://example.com/wp-admin/load-scripts.php?c=0&load[]=hoverIntent,common,admin-bar,heartbeat,autosave,suggest,wp-ajax-response,jquery-color,wp-lists,jquery-ui-mouse,jquery-ui-sortabl&load[]=e,postbox,tags-suggest,tags-box,underscore,word-count,post,editor-expand,thickbox,shortcode,backbone,wp-util,wp-backbone,media-m&load[]=odels,wp-plupload,mediaelement,wp-mediaelement,media-views,media-editor,media-audiovideo,mce-view,imgareaselect,image-edit,svg-p&load[]=ainter,wp-auth-check,jquery-ui-resizable,jquery-ui-draggable,jquery-ui-button,jquery-ui-dialog,jquery-ui-datepicker,quicktags,wp&load[]=link,media-upload,wp-embed&ver=4.8.2
And here is an example from a working site. https://example.com/load-scripts.php?c=0&load[]=hoverIntent,common,admin-bar,heartbeat,autosave,suggest,wp-ajax-response,jquery-color,wp-lists,jquery-ui-mouse,jquery-ui-sortabl&load[]=e,postbox,tags-suggest,tags-box,underscore,word-count,post,editor-expand,thickbox,shortcode,backbone,wp-util,wp-backbone,media-m&load[]=odels,wp-plupload,mediaelement,wp-mediaelement,media-views,media-editor,media-audiovideo,mce-view,imgareaselect,image-edit,svg-p&load[]=ainter,wp-auth-check,jquery-ui-resizable,jquery-ui-draggable,jquery-ui-button,jquery-ui-dialog,jquery-ui-datepicker,editor,quick&load[]=tags,wplink,media-upload,wp-embed&ver=4.8.2
正如您所看到的,“editor”由于某种原因丢失了如果我通过添加以下内容单独加载脚本,编辑器也会丢失:
define(\'CONCATENATE_SCRIPTS\', false);
非常感谢您的任何意见。谢谢