Automattic / crowdsignal-forms

Gutenberg blocks for Crowdsignal
GNU General Public License v2.0
13 stars 9 forks source link

check for null `core/edit-post` selector which is causing a crash in 6.5 #277

Closed jgcaruso closed 5 months ago

jgcaruso commented 5 months ago

This PR fixes a crash introduced in WordPress 6.5 where the core/edit-post selector is no longer available in FSE.

Testing

  1. Apply this PR to get the docker fixes, then run the steps to setup the dev environment. See https://github.com/Automattic/crowdsignal-forms/tree/master/docker#setup
  2. run make client
  3. in FSE, add a /feedback block
  4. The warning message should appear, and NOT a "this block has experienced a problem" message