Skip to content

Plugin Directory: Add common-plugin rejection reason for duplicate/common plugin submissions#569

Closed
davidperezgar wants to merge 2 commits intoWordPress:trunkfrom
davidperezgar:add-rejection-issues
Closed

Plugin Directory: Add common-plugin rejection reason for duplicate/common plugin submissions#569
davidperezgar wants to merge 2 commits intoWordPress:trunkfrom
davidperezgar:add-rejection-issues

Conversation

@davidperezgar
Copy link
Member

This PR adds a new rejection reason, common-plugin, to better classify plugin submissions that repeat functionality already widely available in the directory.

What changed

  1. Added a new rejection reason key/value in Template::get_rejection_reasons():
    • Key: common-plugin
    • Label: Common plugin
  2. Added the corresponding rejection email reason handler for common-plugin in Plugin_Rejected so the correct message is sent when selected.
  3. Ensured the new reason is available in the existing rejection reason dropdowns and stored via _rejection_reason like other reasons.

Why
We currently group these cases under broader reasons (often other or duplicate), which makes reporting and reviewer workflows less precise.
common-plugin gives us a clearer, explicit classification for submissions that are redundant in the directory.

Testing

  1. Open a plugin in wp-admin and change status to rejected.
  2. Confirm Common plugin appears in the rejection reason dropdown.
  3. Save and verify _rejection_reason is stored as common-plugin in post meta.
  4. Trigger/send the rejection email and confirm the new reason-specific content is used (not fallback other).
  5. Verify existing rejection reasons continue to work unchanged.

Notes

  • Backward compatible: existing rejection reason keys and flows are unchanged.
  • This only introduces a new option and reason template; no migration required.

@github-actions
Copy link

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

Core Committers: Use this line as a base for the props when committing in SVN:

Props davidperez.

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

@davidperezgar davidperezgar changed the title Add common-plugin rejection reason for duplicate/common plugin submissions Plugin Directory: Add common-plugin rejection reason for duplicate/common plugin submissions Mar 22, 2026
@bazza bazza closed this in 9046435 Mar 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant