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
This commit is contained in:
Robert Anderson 2021-06-23 03:46:44 +00:00
parent e38e743902
commit bdf7dd6299

View File

@ -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 );
}