Closed chesio closed 6 months ago
Let's tackle it as part of 3.4, it might be not straight-forward to fix.
It's actually straight-forward to fix. Only users with manage_options
capability can access Cache Viewer, this has always been the case and it is documented this way as well. However, any user can flush the cache in case corresponding filter is set accordingly. So the issue is only about display of link to Cache Viewer in dashboard: if user can flush the cache, but does not have manage_options
capability, there should be no link (only plain text).
However link to the page in dashboard widget is rendered whenever this call returns true:
Let's tackle it as part of 3.4, it might be not straight-forward to fix.