Skip to content

Enforced maximum post age when sharing queued posts - #1103

Merged
selul merged 2 commits into
developmentfrom
bugfix/1101
Aug 12, 2026
Merged

Enforced maximum post age when sharing queued posts#1103
selul merged 2 commits into
developmentfrom
bugfix/1101

Conversation

@girishpanchal30

Copy link
Copy Markdown
Contributor

Summary

Revalidate queued posts before sharing them to ensure they are still eligible at the time of sharing, preventing posts that became ineligible after being queued from being shared.

Check before Pull Request is ready:

Closes #1101

@pirate-bot pirate-bot added the pr-checklist-complete The Pull Request checklist is complete. (automatic label) label Aug 3, 2026
@girishpanchal30
girishpanchal30 requested a review from Copilot August 3, 2026 07:39
@pirate-bot

pirate-bot commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

Plugin build for a344e26 is ready 🛎️!

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Not ready to approve

The added buffer update can overwrite newer queue-removal state and permit posts to be queued again.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

This review doesn't count toward merge requirements. Sign up for the private preview to control whether Copilot approvals count.

Pull request overview

Revalidates queued posts at share time to prevent stale or unpublished content from being shared.

Changes:

  • Adds post-age and eligibility checks.
  • Skips and logs ineligible queued posts.
  • Adds PHPUnit coverage for aged queued posts.
File summaries
File Description
includes/admin/class-rop-admin.php Revalidates posts before sharing.
includes/admin/models/class-rop-posts-selector-model.php Adds reusable eligibility checks.
includes/class-rop-i18n.php Adds the skip log message.
tests/test-queue.php Tests eligibility and queue behavior.
Review details
  • Files reviewed: 4/4 changed files
  • Comments generated: 1
  • Review effort level: Balanced

We're testing this review assessment. Please use 👍 or 👎 to tell us if it's correct.

Comment thread includes/admin/class-rop-admin.php
@selul
selul merged commit 8522dbd into development Aug 12, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-checklist-complete The Pull Request checklist is complete. (automatic label)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants