From 2e0e705d4c3bc9aaf16f6fb82ac382ef35d1127f Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 14 Jun 2021 11:02:57 +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. Built from https://develop.svn.wordpress.org/trunk@51141 git-svn-id: http://core.svn.wordpress.org/trunk@50750 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-wp-customize-widgets.php | 2 ++ wp-includes/version.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/wp-includes/class-wp-customize-widgets.php b/wp-includes/class-wp-customize-widgets.php index ce1d30ebd8..68efa5cf8a 100644 --- a/wp-includes/class-wp-customize-widgets.php +++ b/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. diff --git a/wp-includes/version.php b/wp-includes/version.php index f3ef852fa5..49a1d154dd 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.8-beta1-51140'; +$wp_version = '5.8-beta1-51141'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.