WordPress / WordPress/pattern-directory

Remove reliance upon gutenberg_initialize_editor().

Open
#601 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

[Component] Pattern Creator
Dominant language
PHP
Stars
134
Forks
46
Avg merge
9h 4m
Merged PRs (30d)
19

Description

Describe the bug
In https://github.com/WordPress/gutenberg/pull/53527 Gutenberg removed the gutenberg_initialize_editor() method which we use here:

https://github.com/WordPress/pattern-directory/blob/11bccb6459849996b8453699596fe5ebacaa6f48/public_html/wp-content/plugins/pattern-creator/pattern-creator.php#L164-L172

This is causing a fatal error with the Pattern Directory + Gutenberg 16.5.0.

E_ERROR: Uncaught Error: Call to undefined function WordPressdotorg\Pattern_Creator\gutenberg_initialize_editor() in /wp-content/plugins/pattern-creator/pattern-creator.php:164

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Read public_html/wp-content/plugins/pattern-creator/pattern-creator.php around lines 164-172 and compare it with Gutenberg PR 53527, which removed gutenberg_initialize_editor(). Verify the plugin no longer calls the removed function and does not produce the reported fatal error with Gutenberg 16.5.0.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.