WordPress.org

Make WordPress Core

Ticket #53394: 53394.patch

File 53394.patch, 660 bytes (added by jontyravi, 3 months ago)
Line 
1Index: src/wp-includes/class-wp-customize-widgets.php
2=====================================================
3
4/**
5         * Sanitizes a widget instance.
6         *
7         * Unserialize the JS-instance for storing in the options. It's important that this filter
8         * only get applied to an instance *once*.
9         *
10         * @since 3.9.0
11     * @global WP_Widget_Factory $wp_widget_factory
12         *
13         * @param array $value Widget instance to sanitize.
14         * @param string $id_base Base of the ID of the widget being sanitized.
15         * @return array|void Sanitized widget instance.
16         */
17        public function sanitize_widget_instance( $value, $id_base = null ) {
18                global $wp_widget_factory;