Skip to content

Save IP address with RSVP.#1008

Merged
mauteri merged 2 commits intodevelopfrom
save-ip-address
Feb 6, 2025
Merged

Save IP address with RSVP.#1008
mauteri merged 2 commits intodevelopfrom
save-ip-address

Conversation

@mauteri
Copy link
Copy Markdown
Contributor

@mauteri mauteri commented Feb 5, 2025

Description of the Change

  • Record IP address in comments table for RSVPs.

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 @mauteri

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 Feb 5, 2025

PR Summary

  • Implementing Default Settings for User IP Addresses
    Initially, the user's IP address, as indicated by comment_author_IP, has been set as a default value ('127.0.0.1') in our system.

  • Automatically Updating User IP Addresses
    There's an update to automatically replace the default user IP address with the actual one. This is retrieved from the users' server data, $_SERVER['REMOTE_ADDR'], only if it's valid and holds some value.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Feb 5, 2025

Preview changes with Playground

You can preview the recent changes for PR#1008 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 February 6, 2025 14:46
@mauteri mauteri merged commit 108ca89 into develop Feb 6, 2025
@mauteri mauteri deleted the save-ip-address branch February 6, 2025 14:46
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