WordPress / WordPress/secure-custom-fields
"Submit for Review" no check for required SCF fields
Open
Nobody has claimed this yet.
[Type] Bug
- Dominant language
- PHP
- Stars
- 131
- Forks
- 64
- Avg merge
- 10m
- Merged PRs (30d)
- 1
Description
Hi!
I noticed that when a user submits a custom post type post for approval (using the "Submit for Review" button), there’s no validation for required SCF fields.
Let me explain:
- I created the Events post type via SCF and defined custom capabilities for it (e.g.
edit_events, etc.). - I created a new role, removed all default capabilities, and added
readandedit_events. Users with this role can now create Event posts. - These users cannot publish posts – they can only submit them for review. Everything works fine in general, but when a user clicks “Submit for Review” no check is performed for required SCF fields. As a result, posts can be submitted without completing mandatory fields.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the custom post type workflow with required SCF fields and a role that can submit posts for review but not publish them. Start by tracing the “Submit for Review” handling and required-field validation; done means submission is blocked until mandatory SCF fields are completed.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php, wordpress
- Domain
- backend, content
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100