frontend/web/blog_mysql/wp-content/themes/v20190812/inc/social-widgets/social-icon.php
// Updating widget replacing old instances with new
Updating widget replacing old instances with new
Updating widget replacing old instances with new
public function update( $new_instance, $old_instance ) {
		$instance = array();	
		$instance['title'] = (!empty($new_instance['title']) ) ? strip_tags($new_instance['title']) : '';	
        $instance['facebook'] = (!empty($new_instance['facebook']) ) ? strip_tags($new_instance['facebook']) : '';
        $instance['twitter'] = (!empty($new_instance['twitter']) ) ? strip_tags($new_instance['twitter']) : '';
        $instance['google'] = (!empty($new_instance['google']) ) ? strip_tags($new_instance['google']) : '';
        $instance['instagram'] = (!empty($new_instance['instagram']) ) ? strip_tags($new_instance['instagram']) : '';
        $instance['linkedin'] = (!empty($new_instance['linkedin']) ) ? strip_tags($new_instance['linkedin']) : '';
        $instance['pinterest'] = (!empty($new_instance['pinterest']) ) ? strip_tags($new_instance['pinterest']) : '';
        $instance['tumblr'] = (!empty($new_instance['tumblr']) ) ? strip_tags($new_instance['tumblr']) : '';
         $instance['youtube'] = (!empty($new_instance['youtube']) ) ? strip_tags($new_instance['youtube']) : '';
		 return $instance;
	}
public function update ( $ new_instance , $ old_instance ) { $ instance = array ( ) ; $ instance [ 'title' ] = ( ! empty ( $ new_instance [ 'title' ] ) ) ? strip_tags ( $ new_instance [ 'title' ] ) : '' ; $ instance [ 'facebook' ] = ( ! empty ( $ new_instance [ 'facebook' ] ) ) ? strip_tags ( $ new_instance [ 'facebook' ] ) : '' ; $ instance [ 'twitter' ] = ( ! empty ( $ new_instance [ 'twitter' ] ) ) ? strip_tags ( $ new_instance [ 'twitter' ] ) : '' ; $ instance [ 'google' ] = ( ! empty ( $ new_instance [ 'google' ] ) ) ? strip_tags ( $ new_instance [ 'google' ] ) : '' ; $ instance [ 'instagram' ] = ( ! empty ( $ new_instance [ 'instagram' ] ) ) ? strip_tags ( $ new_instance [ 'instagram' ] ) : '' ; $ instance [ 'linkedin' ] = ( ! empty ( $ new_instance [ 'linkedin' ] ) ) ? strip_tags ( $ new_instance [ 'linkedin' ] ) : '' ; $ instance [ 'pinterest' ] = ( ! empty ( $ new_instance [ 'pinterest' ] ) ) ? strip_tags ( $ new_instance [ 'pinterest' ] ) : '' ; $ instance [ 'tumblr' ] = ( ! empty ( $ new_instance [ 'tumblr' ] ) ) ? strip_tags ( $ new_instance [ 'tumblr' ] ) : '' ; $ instance [ 'youtube' ] = ( ! empty ( $ new_instance [ 'youtube' ] ) ) ? strip_tags ( $ new_instance [ 'youtube' ] ) : '' ; return $ instance ; }
Updating widget replacing old instances with new
Updating widget replacing old instances with new