除非我提供“ manage_options”功能,否则WordPress作者角色无法编辑任何帖子

时间:2019-05-12 07:25:42

标签: php wordpress user-roles wordpress-gutenberg

当我手动创建一个新用户并赋予他们作者或编辑者角色时,我在WordPress上遇到了一个非常奇怪的问题

他们无法编辑任何帖子,当他们打开编辑页面时,编辑器似乎未加载完整的功能,就像禁用了javascript一样,并且单击按钮时按钮不会触发任何操作。 此外,我的主题生成器无法正常工作,并且默认为我的主题

并且我的控制台中出现此错误。

Failed to load resource: the server responded with a status of 500 ()
post.php?post=1717&action=edit:1 

我确定这与角色和功能有关,当我将manage_options功能添加到“作者”角色后,此问题得以解决,但是还添加了许多其他不需要的功能

这些都是我网站上默认作者角色的所有功能

enter image description here enter image description here

enter image description here

enter image description here

enter image description here

0 个答案:

没有答案