WordPress / WordPress/secure-custom-fields

"Submit for Review" no check for required SCF fields

Open
#197 0 comments 0 reactions 0 assignees View on GitHub

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:

  1. I created the Events post type via SCF and defined custom capabilities for it (e.g. edit_events, etc.).
  2. I created a new role, removed all default capabilities, and added read and edit_events. Users with this role can now create Event posts.
  3. 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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.