Skip to content

Class 'wp-block-yoast-faq-block' and 'wp-block-yoast-how-to-block' missing from the FAQ block and How-to block on version 22.7 #21403

@josevarghese

Description

@josevarghese
  • I've read and understood the contribution guidelines.
  • I've searched for any related issues and avoided creating a duplicate issue.

Please give us a description of what happened

When we update our Yoast SEO plugin from version 22.6 to 22.7, the class for the FAQ block wp-block-yoast-faq-block and How-to block wp-block-yoast-how-to-block is missing.

To Reproduce

Step-by-step reproduction instructions

  1. Install the Yoast SEO free plugin of version 22.6
  2. Add a FAQ block and a How-to block on the page with some dummy content
  3. View the page and inspect the class for the blocks. You can see the FAQ block is outputted as <div class="schema-faq wp-block-yoast-faq-block"> and for the How-to block as <div class="schema-how-to wp-block-yoast-how-to-block">
  4. Update the plugin to 22.7; you can notice the class for the FAQ changed to <div class="schema-faq"> whereas the How-to block outputted as <div class="schema-how-to wp-block-yoast-how-to-block">
  5. However, when you try to create a new How-to block on another page, the class gets changes to <div class="schema-how-to">

Expected results

  1. The classes for FAQ block 'wp-block-yoast-faq-block' and How-to block wp-block-yoast-how-to-block should be there as some users may use some customization using it.

Actual results

  1. FAQ block 'wp-block-yoast-faq-block' and How-to block wp-block-yoast-how-to-block are missing on the front end.

Screenshots, screen recording, code snippet

If possible, please provide a screenshot, a screen recording or a code snippet which demonstrates the bug.

Screenshots of How-to block
how-to-22-6
Screenshot of the class showing on 22.6 for How-to block

how-to-22-7
Screenshot of the class showing on 22.7 for How-to block

Screenshots of FAQ block
Screenshot 2024-05-23 at 2 48 08 PM
Screenshot of FAQ block on version 22.6

Screenshot 2024-05-23 at 2 10 44 PM
Screenshot of FAQ block on version 22.7

Technical info

  • If relevant, which editor is affected (or editors):
  • Block Editor
  • Gutenberg Editor
  • Elementor Editor
  • Classic Editor
  • Other:
  • Which browser is affected (or browsers):
  • Chrome
  • Firefox
  • Safari
  • Other:

Used versions

  • Device you are using: Samsung Book 3 pro
  • Operating system: Windows 11
  • PHP version: 8.1.23
  • WordPress version: 5.6.3
  • WordPress Theme: Twenty Twenty-Two
  • Yoast SEO version: 22.7 / 22.6
  • Gutenberg plugin version:
  • Elementor plugin version:
  • Classic Editor plugin version:
  • Relevant plugins in case of a bug:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions