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. Built from https://develop.svn.wordpress.org/trunk@51219 git-svn-id: http://core.svn.wordpress.org/trunk@50828 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
74c1893ae0
commit
6ec11e6b55
|
@ -13,7 +13,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '5.8-beta3-51218';
|
$wp_version = '5.8-beta3-51219';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
|
@ -2006,16 +2006,3 @@ function wp_render_widget_control( $id ) {
|
||||||
|
|
||||||
return ob_get_clean();
|
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 );
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in New Issue