Copy/paste global elements only works when 1 or more items have already been added

Description:

When attempting to paste one or more copied global elements (e.g. a, button, input, select, etc), this only works if one already exists in the list.

Step-by-step reproduction instructions:

  1. Open the Post Editor/Site Editor
  2. Go to Globals > Elements > HTML
  3. Create one or more elements (as mentioned above e.g. button)
  4. Copy one ore more elements (e.g. button)
  5. Go to a clean site with no buttons (or delete all buttons on the existing site)
  6. Attempt to paste a button
  7. Note it doesn’t work
  8. Now, add a single button
  9. Paste the previously copied buttons
  10. Note that it now works correctly.

Environment info

  • WordPress version: 6.5.3
  • Cwicly Plugin version: 1.4.1.4

Hi @StrangeTech,

Thanks so much for your report.
I was not able to reproduce the issue.

Are you still experiencing this problem?

Best regards,
Johnny

Hi @JohnD,

Thank you for responding.

Yes, we experienced it with 1.4.1.4 in the last couple of weeks, it has been a long-standing bug and is still happening as far as I know.

Are you sure you followed step 5 and were starting on a site with no other elements of that type already present - that is the crucial part - this bug only happens when there are no elements already existing.

Hi @StrangeTech,

Thanks for the follow up.

I did follow all the steps detailed in your post but did not run into this error. I will repeat again (with screencast) and see if I run into the issue.

Best regards,
Johnny

1 Like

Hi @Louis,

Given the complete overhaul of the global elements in 1.4.2, this is no longer an issue and can be marked as fixed.

Thanks!

1 Like

Thanks for bringing this up, @StrangeTech. Fixed in 1.4.2.

1 Like