From 24f57d12275fbf9978c7fceb1f4f72d534e5a7d3 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 14 Jun 2021 11:01:42 +0000 Subject: [PATCH] Docs: Document the usage of `$wp_widget_factory` global in `WP_Customize_Widgets::sanitize_widget_instance()`. Follow-up to [50996]. Props jontyravi, audrasjb. Fixes #53394. git-svn-id: https://develop.svn.wordpress.org/trunk@51141 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/class-wp-customize-widgets.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/wp-includes/class-wp-customize-widgets.php b/src/wp-includes/class-wp-customize-widgets.php index ce1d30ebd8..68efa5cf8a 100644 --- a/src/wp-includes/class-wp-customize-widgets.php +++ b/src/wp-includes/class-wp-customize-widgets.php @@ -1395,6 +1395,8 @@ final class WP_Customize_Widgets { * * @since 3.9.0 * + * @global WP_Widget_Factory $wp_widget_factory + * * @param array $value Widget instance to sanitize. * @param string $id_base Base of the ID of the widget being sanitized. * @return array|void Sanitized widget instance.