From bdf7dd6299e4453f9d7438de0a0e138d950ec0bf Mon Sep 17 00:00:00 2001 From: Robert Anderson Date: Wed, 23 Jun 2021 03:46:44 +0000 Subject: [PATCH] Widgets: Remove unnecessary gutenberg_ functions Removes temporary gutenberg_ functions which were required by the Legacy Widget block until the Legacy Widget block was updated in [51149]. Follows [50996]. Fixes #53441. Props spacedmonkey. git-svn-id: https://develop.svn.wordpress.org/trunk@51219 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/widgets.php | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/wp-includes/widgets.php b/src/wp-includes/widgets.php index 124428a622..2a90d6ff0f 100644 --- a/src/wp-includes/widgets.php +++ b/src/wp-includes/widgets.php @@ -2006,16 +2006,3 @@ function wp_render_widget_control( $id ) { return ob_get_clean(); } - -// Needed until src/blocks/legacy-widget/index.php in @wordpress/block-library -// is updated to use the 'wp_' functions. -function gutenberg_find_widgets_sidebar( $widget_id ) { - return wp_find_widgets_sidebar( $widget_id ); -} -function gutenberg_render_widget( $widget_id, $sidebar_id ) { - return wp_render_widget( $widget_id, $sidebar_id ); -} -function gutenberg_get_widget_object( $id_base ) { - global $wp_widget_factory; - return $wp_widget_factory->get_widget_object( $id_base ); -}