Make WordPress Core

Changeset 51219


Ignore:
Timestamp:
06/23/2021 03:46:44 AM (4 years ago)
Author:
noisysocks
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/widgets.php

    r51214 r51219  
    20072007    return ob_get_clean();
    20082008}
    2009 
    2010 // Needed until src/blocks/legacy-widget/index.php in @wordpress/block-library
    2011 // is updated to use the 'wp_' functions.
    2012 function gutenberg_find_widgets_sidebar( $widget_id ) {
    2013     return wp_find_widgets_sidebar( $widget_id );
    2014 }
    2015 function gutenberg_render_widget( $widget_id, $sidebar_id ) {
    2016     return wp_render_widget( $widget_id, $sidebar_id );
    2017 }
    2018 function gutenberg_get_widget_object( $id_base ) {
    2019     global $wp_widget_factory;
    2020     return $wp_widget_factory->get_widget_object( $id_base );
    2021 }
Note: See TracChangeset for help on using the changeset viewer.