Changeset 51414 for trunk/src/wp-includes/widgets/class-wp-widget-block.php
- Timestamp:
- 07/13/2021 05:57:04 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/widgets/class-wp-widget-block.php
r51249 r51414 179 179 */ 180 180 public function update( $new_instance, $old_instance ) { 181 $instance = array_merge( $this->default_instance, $old_instance ); 182 $instance['content'] = $new_instance['content']; 181 $instance = array_merge( $this->default_instance, $old_instance ); 182 183 if ( current_user_can( 'unfiltered_html' ) ) { 184 $instance['content'] = $new_instance['content']; 185 } else { 186 $instance['content'] = wp_kses_post( $new_instance['content'] ); 187 } 183 188 184 189 return $instance;
Note: See TracChangeset
for help on using the changeset viewer.