You appear to be a bot. Output may be restricted
Description
Update a particular instance.
This function should check that $new_instance
is set correctly. The newly calculated value of $instance should be returned. If "false" is returned, the instance won't be saved/updated.
Usage
$array = Genesis_Featured_Page::update( $new_instance, $old_instance );
Parameters
- $new_instance
- ( array ) required – New settings for this instance as input by the user via `form()`.
- $old_instance
- ( array ) required – Old settings for this instance.
Returns
array Settings to save or bool false to cancel saving.
Source
File name: genesis/lib/widgets/featured-page-widget.php
Lines:
1 to 7 of 7
public function update( $new_instance, $old_instance ) { $new_instance['title'] = wp_strip_all_tags( $new_instance['title'] ); $new_instance['more_text'] = wp_strip_all_tags( $new_instance['more_text'] ); return $new_instance; }