Skip to content

Tie submitted email with a user if one exits; fixed comment approval …#1213

Merged
mauteri merged 2 commits intodevelopfrom
bug-fixes-0.33.0
Nov 9, 2025
Merged

Tie submitted email with a user if one exits; fixed comment approval …#1213
mauteri merged 2 commits intodevelopfrom
bug-fixes-0.33.0

Conversation

@mauteri
Copy link
Copy Markdown
Contributor

@mauteri mauteri commented Nov 9, 2025

…fetch.

Description of the Change

Closes #

How to test the Change

Changelog Entry

Added - New feature
Changed - Existing functionality
Deprecated - Soon-to-be removed feature
Removed - Feature
Fixed - Bug fix
Security - Vulnerability

Credits

Props @username, @username2, ...

Checklist:

  • I agree to follow this project's Code of Conduct.
  • I have updated the documentation accordingly.
  • I have added tests to cover my change.
  • All new and existing tests pass.

@what-the-diff
Copy link
Copy Markdown

what-the-diff bot commented Nov 9, 2025

PR Summary

  • Improved User Authentication in Form Submission
    Updated the logic to verify if the email of the currently logged-in user matches the one provided in the form. The new logic also checks for existing users by email. This enhancement helps associate the form responses with an existing user if found, or alternatively create an anonymous response if no matching user is located.

  • Refined RSVP Retrieval Method
    The arguments to retrieve RSVPs have been modified to include a 'status' condition, which is set to 'approve'. This change ensures that only approved RSVPs are fetched from the database.

  • Modifications to RSVP Saving Method
    When updating an existing RSVP record, a 'comment_approved' flag, set to 1, is added. This change ensures that the system marks incoming RSVPs as approved upon saving them.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Nov 9, 2025

Preview changes with Playground

You can preview the recent changes for PR#1213 with the following PHP versions:

PHP Version 8.3

PHP Version 7.4

Download .zip with build changes

Made with 💙 from GatherPress & a little bit of WordPress Playground. Changes will not persist between sessions.

@mauteri mauteri marked this pull request as ready for review November 9, 2025 15:40
@mauteri mauteri merged commit 6aa95fc into develop Nov 9, 2025
16 checks passed
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