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
This commit is contained in:
Sergey Biryukov 2021-06-14 11:02:57 +00:00
parent 9f91305af2
commit 2e0e705d4c
2 changed files with 3 additions and 1 deletions

View File

@ -1395,6 +1395,8 @@ final class WP_Customize_Widgets {
* *
* @since 3.9.0 * @since 3.9.0
* *
* @global WP_Widget_Factory $wp_widget_factory
*
* @param array $value Widget instance to sanitize. * @param array $value Widget instance to sanitize.
* @param string $id_base Base of the ID of the widget being sanitized. * @param string $id_base Base of the ID of the widget being sanitized.
* @return array|void Sanitized widget instance. * @return array|void Sanitized widget instance.

View File

@ -13,7 +13,7 @@
* *
* @global string $wp_version * @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. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.