Pasting into Innerblocks acts as if you are in Modify mode even when you are not

Description:

This has just started happening for us.

Logged in as an admin with modify privileges or as a custom editor role without modify privileges, when pasting into an innerblocks within a component it adds the content to every instance even though we are not in modify mode.

@Louis this is an urgent one for us as we have clients editing the site and it is supposed to be going live tomorrow morning.

Step-by-step reproduction instructions:

  1. Open the Post Editor/Site Editor
  2. Create a component
  3. Add a nested component with an innerblocks
  4. Attempt to paste into the innerblocks when not in modify mode
  5. Add another instance of the component to the same page or a different page
  6. Note that the content you pasted is in all instances (not just the one you pasted it into)

Environment info

  • WordPress version: 6.6
  • Cwicly Plugin version: 1.4.1.8

Hello @StrangeTech,

I can confirm the bug.
When an Inner Blocks is nested within a Component which is itself nested within another Component, you should not be able to add/remove blocks to said Inner Blocks without first modifying its parent Component.

The fact that you are seeing the content pasted in all instances is perfectly normal, since you say that the Component that contains the Inner Blocks is itself contained within a Component. Modifying the contents of the Inner Blocks will be replicated throughout every instance of the main parent Component.

I appreciate the urgency of the matter, but we’re not going to be able to push out a specific fix for this in the coming days unfortunately. I suggest informing your users about the current situation.
Apologies for the inconvenience.

1 Like

Obviously not the answer we were hoping for, but I appreciate the swift response, thank you @Louis.

Hello @StrangeTech,

I did send a pm last night about sending you a build fix, but haven’t had your confirmation yet.

1 Like

Responded, thank you @Louis.