-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Closed
Labels
[Package] Core commands[Status] In ProgressTracking issues with work in progressTracking issues with work in progress[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended
Description
Description
While editing a page using the post editor, I can open the command palette and search for a different page to edit, but when I select the page, it opens in the site editor even if I can't access that.
Step-by-step reproduction instructions
- Deny users the
edit_theme_optionscapability (see snippet). - Open a page in the post editor.
- Use the command palette to try to edit a different page.
- Get "Sorry, you are not allowed to access this page."
Screenshots, screen recording, code snippet
Deny the edit_theme_options capability with:
add_filter(
'map_meta_cap',
function ( $caps, $cap ) {
if ( 'edit_theme_options' === $cap ) {
$caps = [ 'do_not_allow' ];
}
return $caps;
},
10,
2
);Environment info
- WordPress 6.6 beta 1
- Gutenberg plugin deactivated
- Twenty Twenty-Four theme
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
Metadata
Metadata
Assignees
Labels
[Package] Core commands[Status] In ProgressTracking issues with work in progressTracking issues with work in progress[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended