Created
February 4, 2012 17:49
-
-
Save jchristopher/1739167 to your computer and use it in GitHub Desktop.
The update() for our Image of the Month Widget
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function update( $new_instance, $old_instance ) | |
{ | |
$instance = $old_instance; | |
$instance['headline'] = strip_tags( $new_instance['headline'] ); | |
$instance[$this->image_field] = intval( strip_tags( $new_instance[$this->image_field] ) ); | |
$instance['blurb'] = strip_tags( $new_instance['blurb'] ); | |
return $instance; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment