AP_Search_Widget::update( array $new_instance, array $old_instance )
Description #
Sanitize widget form values as they are saved.
Parameters #
- $new_instancearray (Required) Values just sent to be saved.
- $old_instancearray (Required) Previously saved values from database.
Source #
File: widgets/search.php
public function update( $new_instance, $old_instance ) { $instance = array(); $instance['title'] = ( ! empty( $new_instance['title'] ) ) ? wp_strip_all_tags( $new_instance['title'] ) : ''; return $instance; }
Expand full source code Collapse full source code View on GitHub: widgets/search.php:96
Add your comment