Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
The update() for our Image of the Month Widget
<?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