出于某种原因,Wordpress admin并没有通过load-scripts.php加载所有必需的脚本。这导致文本编辑器中缺少"Visual/ text“选项卡。“b”、“i”、“link”等按钮仍然存在,并可用于HTML编辑器。我已经进行了三次检查,所有用户都设置为使用可视化编辑器。
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
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);
任何投入都是非常感谢的。谢谢。
发布于 2017-10-18 05:11:38
如果存在错误,则Visual将无法工作,而不会丢失。编辑器脚本也将无法加载,而不是从load-scripts.php中丢失。缺少选项卡并且没有加载脚本,这表明Visual只是在您的配置文件中被禁用(用户>您的配置文件)。
https://wordpress.stackexchange.com/questions/283234
复制相似问题