[wp-trac] [WordPress Trac] #53610: Remove references to Gutenberg specific functions

WordPress Trac noreply at wordpress.org
Fri Jul 9 14:26:22 UTC 2021


#53610: Remove references to Gutenberg specific functions
---------------------------+---------------------
 Reporter:  desrosj        |       Owner:  (none)
     Type:  defect (bug)   |      Status:  new
 Priority:  normal         |   Milestone:  5.8
Component:  Editor         |     Version:
 Severity:  normal         |  Resolution:
 Keywords:  needs-testing  |     Focuses:
---------------------------+---------------------
Changes (by desrosj):

 * keywords:  dev-feedback 2nd-opinion => needs-testing


Comment:

 I've opened a PR in the Gutenberg repository to address the two widget
 functions. The PR:
 - Adds two filters for changing the value of `$widget_key` and
 `$widget_object`.
 - Adds functions hooked to those filters in the compatibility folder.
 - Removes the Gutenberg specific function calls in the file copied to
 WordPress Core.

 I don't love adding two individual filters to get around this, but I
 dislike shipping plugin specific code more.

 Please give it a review and test if you can:
 https://github.com/WordPress/gutenberg/pull/33331

 I'm looking at the `post-template.php` `gutenberg_` function call now.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/53610#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list