Automattic / Automattic/wp-super-cache
Feature Request: delete_supercache capability
- Dominant language
- PHP
- Stars
- 436
- Forks
- 130
- Avg merge
- 15h 11m
- Merged PRs (30d)
- 10
Description
### Impacted plugin
Super Cache
### What
Replace edit_other_posts with a custom capability “delete_supercache” or add a filteror add a nice apply_filter(
### How
In wpsc_admin_bar_render() there is a check on a hardcoded capability ( edit_other_posts )
which by default corresponds to the editor and administrator user levels.
This could be replaced with a custom capability “delete_supercache” or add a nice apply_filter() so this capability could be customized to permit/deny the deletion of the entire cache.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start in wpsc_admin_bar_render() and inspect the hardcoded edit_other_posts capability check. Compare the requested delete_supercache capability with the alternative filter mentioned in the issue, and consider the work done when permissions for deleting the entire cache can be customized.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php, wordpress
- Domain
- authorization, backend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100