Skip to content

Conversation

@dkoo
Copy link
Contributor

@dkoo dkoo commented Dec 2, 2025

See discussion in #4251. As mentioned:

  • Fixes several issues with the sanitize_gate method (UI has no expected description field, sanitize_access_rule converts an array of product IDs to strings via sanitize_text_field, etc)
  • Changes the UI element for selecting subscription products to a FormTokenField: the UI only let you choose a single value, but the back-end expects an array of values.
  • Corrects the content rule slug when evaluating the post_types rule (note plural)
  • Fixes a fatal error due to mismatched parameters from the newspack_content_gate_restrict_post filter hook in class-content-gifting.php

@dkoo dkoo requested a review from miguelpeixe December 2, 2025 23:48
@dkoo dkoo requested a review from a team as a code owner December 2, 2025 23:48
@dkoo dkoo added the [Status] Needs Review The issue or pull request needs to be reviewed label Dec 3, 2025
@dkoo dkoo self-assigned this Dec 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Status] Needs Review The issue or pull request needs to be reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants