Changeset 45590 for trunk/src/wp-includes/class-wp-customize-widgets.php
- Timestamp:
- 07/02/2019 11:41:16 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-customize-widgets.php
r45429 r45590 1439 1439 $value[ $parsed_id['number'] ] = $instance; 1440 1440 $key = 'widget-' . $parsed_id['id_base']; 1441 $_REQUEST[ $key ] = $_POST[ $key ] = wp_slash( $value ); 1441 $_REQUEST[ $key ] = wp_slash( $value ); 1442 $_POST[ $key ] = $_REQUEST[ $key ]; 1442 1443 $added_input_vars[] = $key; 1443 1444 } else { 1444 1445 foreach ( $instance as $key => $value ) { 1445 $_REQUEST[ $key ] = $_POST[ $key ] = wp_slash( $value ); 1446 $_REQUEST[ $key ] = wp_slash( $value ); 1447 $_POST[ $key ] = $_REQUEST[ $key ]; 1446 1448 $added_input_vars[] = $key; 1447 1449 } … … 1857 1859 // Render the widget. 1858 1860 ob_start(); 1859 dynamic_sidebar( $this->rendering_sidebar_id = $context['sidebar_id'] ); 1860 $container = ob_get_clean(); 1861 $this->rendering_sidebar_id = $context['sidebar_id']; 1862 dynamic_sidebar( $this->rendering_sidebar_id ); 1863 $container = ob_get_clean(); 1861 1864 1862 1865 // Reset variables for next partial render.
Note: See TracChangeset
for help on using the changeset viewer.