Deleting global class from element leaves an empty "class" attribute on frontend

Description:

If you delete a global class from an element in Cwicly editor, it leaves a blank/empty “class” attribute on frontend.

Step-by-step reproduction instructions:

  1. Apply a custom class in Cwicly editor to an element, for example a heading.
  2. Then, remove that class from that element.
  3. Check on frontend, the result will be something like <h1 class>Some heading</h1>

Screenshots, screen recording, code snippet

Environment info

  • WordPress version: 6.2.2
  • Gutenberg Plugin version: -
  • Cwicly Plugin version: 1.2.9.6.1
  • Cwicly Theme version: 1.0.3

Hello @Dev.tomi,

Thanks for the detailed report, much appreciated.

Indeed, the class attribute is kept and left empty even though there aren’t any active global classes on the block.

This will be fixed in our next update.

Cheers,

Hello @Dev.tomi,

Thanks again for the report.
This should be addressed in 1.2.9.6.1.1.

Cheers,