Skip to content

Fix to event panels not loading properly because not seen as new event.#1028

Merged
mauteri merged 4 commits intodevelopfrom
fix-event-setup
Mar 16, 2025
Merged

Fix to event panels not loading properly because not seen as new event.#1028
mauteri merged 4 commits intodevelopfrom
fix-event-setup

Conversation

@mauteri
Copy link
Copy Markdown
Contributor

@mauteri mauteri commented Mar 16, 2025

Description of the Change

Fixed some bugs including

  • Global settings were not loading correctly on a new event (eg guests, anonymous rsvp, max attendees)
  • Guest input was not rendering on frontend on a new post due to the block status being serialized and the input never loading. I caught this in previous blocks, but missed this one.

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 @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 Mar 16, 2025

PR Summary

  • Version Number Update
    The version number in index.asset.php was updated, which is like changing the ID tag on a product to reflect its latest version.

  • Improved Code Readability
    Minor modifications were made to the edit.js file to improve the readability of the code. Essentially, it's like organizing a document to make it easier to read and understand.

  • Delayed Initialization of the Post State
    The method called hydrateInnerBlocks() is now wrapped within a setTimeout function with a delay of 0 milliseconds. This ensures that the system has enough time to correctly initialize the 'post' state, which helps prevent incorrect detection of a "new post". It can be thought of as allowing a machine to fully start up before recognizing new inputs, for more accurate operations.

@github-actions
Copy link
Copy Markdown
Contributor

Preview changes with Playground

You can preview the recent changes for PR#1028 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 March 16, 2025 02:56
@jmarx jmarx self-requested a review March 16, 2025 11:52
@mauteri mauteri merged commit e27ac24 into develop Mar 16, 2025
9 checks passed
@mauteri mauteri deleted the fix-event-setup branch March 16, 2025 16:35
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.

2 participants