Skip to content

WP_Classic_To_Block_Menu_Converter class declaration bug in Gutenberg 15.7.0 - 16.1.0 #53522

Closed

Description

@getdave

The original code for WP_Classic_To_Block_Menu_Converter was published in the original PR which landed in 15.7.0 as WP_Classic_To_Block_Menu_Converter.

When the class was merged into Core for 6.3, @ramonjd applied a fix in #51959 to rename the class to use the Gutenberg_ prefix. However this has not been backported to the older Plugin releases.

This means that if someone runs 6.3 with an older version of Gutenberg Plugin ( < 16.1.0 ) then they will get a duplicate class definition error because WP_Classic_To_Block_Menu_Converter will be present in Core and the Plugin.

Activity

  1. added
    [Type] Bug
    Gutenberg Plugin
    on Aug 10, 2023
  2. getdave commented on Aug 10, 2023

    @getdave
    ContributorAuthor

    @ramonjd I beleive the fix required here is to backport your #51959 to all Gutenberg Plugin releases from 15.7.0 (where the original code landed) to 16.0.0 (because your fix landed in 16.1.0).

    Do you agree?

  3. ramonjd commented on Aug 10, 2023

    @ramonjd
    Member

    I beleive the fix required here is to backport your #51959 to all Gutenberg Plugin releases from 15.7.0 (where the original code landed) to 16.0.0 (because your fix landed in 16.1.0).

    That sounds like a reasonable approach, and would make things consistent with the naming conventions.

    We could recommend to folks that are having conflict issues now to upgrade to 16.1 (or disable the plugin totally if they're running 6.3, which contains most of the latest features anyway)

  4. mrfoxtalbot commented on Aug 21, 2023

    @mrfoxtalbot

    Thank you for the follow up here, @getdave 🙏

  5. getdave commented on Aug 22, 2023

    @getdave
    ContributorAuthor

    My understanding is that we only support the latest 3 versions of the Plugin so the backports weren't required. Am I right @ramonjd?

  6. ramonjd commented on Aug 22, 2023

    @ramonjd
    Member

    My understanding is that we only support the latest 3 versions of the Plugin so the backports weren't required.

    👋🏻 I'm actually not sure about the exact number of previous versions the plugin supports, however, the Gutenberg plugin is still described as containing "bleeding-edge features" so I believe now that nudging folks to upgrade the plugin rather than backport is the most appropriate way to handle this.

    That means I would say backporting bug fixes in this case isn't required - if it were, it would probably have to occur much more often than it does 😄

  7. ramonjd commented on Aug 7, 2026

    @ramonjd
    Member

    This is stale. Closing - feel free to reopen!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Gutenberg Plugin[Type] Bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions