wp-rocket
wp-rocket copied to clipboard
Remove WP Rocket's options from not public post types
Before submitting an issue please check that you’ve completed the following steps:
- Made sure you’re on the latest version
- Used the search feature to ensure that the bug hasn’t been reported before
Describe the bug
When the post type is not public
we should not display:
-
Clear this cache
button on the view listing all CPT entries -
Clear This Post
button from top menu while editing the post -
Purge this URL
button from the top menu while viewing the post when logged-in as admin
Per: https://github.com/wp-media/wp-rocket/issues/5010#issuecomment-1157295620
Backlog Grooming (for WP Media dev team use only)
- [ ] Reproduce the problem
- [ ] Identify the root cause
- [ ] Scope a solution
- [ ] Estimate the effort
Thanks for opening this @piotrbak.
-
If post type is not
public
, the post will not have a view when logged-in as admin. So point 3 will not exist for these posts. -
If the post type uses classic editor, then these posts will still have the
Clear Cache
button in thePublish
meta box. (Screenshot available in https://github.com/wp-media/wp-rocket/issues/5010#issuecomment-1157295620)