wordpress-website-lifecycle
wordpress-website-lifecycle copied to clipboard
Plugin changelog is not shown without install_plugins cap.
https://github.com/szepeviktor/wordpress-website-lifecycle/blob/383e73edcab65d04c727edbc036d673508a8d6b5/mu-plugins/_core-disallow-updates.php#L15
@johnbillion Could it be that showing changelog on the Plugins page needs install_plugins cap.?
Link: "View version 3.23.2 details"
Sorry, you are not allowed to access this page.
Is it a core bug?
Yes that could well be a bug
Here it is. Even for install_plugins_pre_plugin-information.
https://github.com/WordPress/WordPress/blob/afd60dd8a467eb8620b2ce32277b9ce8b6248c15/wp-admin/plugin-install.php#L18-L20
A work-around
document.querySelectorAll(
"a[href*='/wp-admin/plugin-install.php']"
).forEach(function (anchor) { anchor.outerHTML = anchor.innerHTML; });