vigetlabs / wordpress-site-starter

2 stars 0 forks source link

[N/A] Prevent Block IDs from Changing #140

Closed bd-viget closed 3 months ago

bd-viget commented 3 months ago

Summary

This PR is a bug fix that resets the Block IDs transient at the start of a new request to ensure a new set of IDs is being used when creating Block IDs and checking for duplicates.

Issues

Testing Instructions

  1. Using a block that supports block_id, add one or more to a page.
  2. Make changes and save within 1 min of the previous save
  3. Ensure the Block ID(s) have not changed. ($block['block_id'])