-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Non Administrator roles are no longer able to change the Template in the Post Editor #58037
Comments
CC: @youknowriad I believe this is a regression caused in #56817 that I think has a high severity and needs to get fixed before the release of WordPress 6.5 |
This problem doesn't seem to occur with the classic theme. On the other hand, in the block theme, for non-admin users, the panel doesn't seem to render because
|
My uneducated guess here is that the custom post type that stores templates is inaccessible for anyone that isn't an admin. And maybe this is as easy as changing the post type access preferences so that any user can view them, but only editors can edit them. Or the issue is that the post type is already setup that way. But the useSelect hook here doesn't pass the context view along the request. Either way I think once the access issue is sorted I have a hunch that it will uncover a UI issue because the template locked mode shows the toast notification to tell direct a user to the edit template mode. Which obviously shouldn't happen for any non admin roles since they cannot edit the template. But as far as I'm aware we never needed to care about that distinction because the site editor where this is coming from was admin only anyways. |
There is another related bug at #51886, perhaps both could get fixed together. |
This seems to be the case, the capabilities for all the operations (read, update, delete, create) are being set to I've tried accessing via the |
Noting that this needs to be (will be) resolved for WordPress 6.5. @youknowriad has this on his radar and has an idea which is to use the previous UI for non-administrators like we do for classic themes. |
@fabiankaegy, should we close this now that #58485 is merged? |
Description
Since the update to unify the
PostTemplatePanel
in #56817 any non administrator user roles have lost the ability to switch between available templates.Before:

After:

Step-by-step reproduction instructions
The text was updated successfully, but these errors were encountered: