This PR contains several fixes for permissions and previews on Block Editor / Gutenberg.
Standardises the permission check for the Domains settings menu item and the page itself.
Introduces two new filters for overriding the default permission level for managing domains, dark_matter_domain_permission, and restricted domains, dark_matter_restricted_permission. Both default to Super Admin.
Fixes an issue where get_preview_post_link() and permalinks were not handled properly in REST API calls.
Fixes an issue where "View [Post Type]" on Block Editor now uses the correct URL.
Updated the composer and NPM dependencies to latest versions where applicable.
This PR contains several fixes for permissions and previews on Block Editor / Gutenberg.
dark_matter_domain_permission
, and restricted domains,dark_matter_restricted_permission
. Both default to Super Admin.get_preview_post_link()
and permalinks were not handled properly in REST API calls.