Skip to content

Bug: Console error when using "Sort by" or "Order by" on the Patterns page #68562

@Gulamdastgir-Momin

Description

@Gulamdastgir-Momin

Description

When interacting with the "Sort by" or "Order by" dropdowns on the Patterns page, an error appears in the browser console. The error prevents the proper functioning of the Patterns page and impacts the user experience. I have tested this issue with multiple themes, and the same error occurs consistently.

PS: I am unsure whether to report this issue in Core or here, so I have created this ticket here :)

Step-by-step reproduction instructions

  1. Go to the Patterns page in the WordPress admin.
  2. Interact with the "Sort by" or "Order by" dropdown to change the sorting order.
  3. Check the browser console for errors.

Screenshots, screen recording, code snippet

https://www.awesomescreenshot.com/video/35353642?key=61801b613292042fe287aa45aa78f1dc

Environment info

  • WordPress: 6.8-alpha-59274-src
  • PHP: 8.2.27
  • Server: nginx/1.27.3
  • Database: mysqli (Server: 8.4.3 / Client: mysqlnd 8.2.27)
  • Browser: Chrome 131.0.0.0
  • OS: Linux
  • Theme: Twenty Twenty 2.8
  • MU Plugins: None activated
  • Plugins:
    • Test Reports 1.2.0

Please confirm that you have searched existing issues in the repo.

  • Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

  • Yes

Please confirm which theme type you used for testing.

  • Block
  • Classic
  • Hybrid (e.g. classic with theme.json)
  • Not sure

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Feature] DataViewsWork surrounding upgrading and evolving views in the site editor and beyond[Package] Block editor/packages/block-editor[Type] BugAn existing feature does not function as intended

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions