wordpress/wp-content/themes/basic/themify/themify-database.php
/**
 * Abstract away normalizing the data
 * @param $data
 * @return array
 */
Abstract away normalizing the data
@param $data
@return array
Abstract away normalizing the data @param $data @return array
function themify_sanitize_data( $data ) {
	if ( is_array( $data ) && !empty( $data )) {
		foreach( $data as $name => $value ){
			if ( in_array( $name, array( 'setting-custom_css', 'setting-header_html', 'setting-footer_html', 'setting-footer_text_left', 'setting-footer_text_right', 'setting-homepage_welcome', 'setting-store_info_address' ),true )
				|| ( false !== stripos( $name, 'setting-hooks' ) )
			) {
				$data[$name] = str_replace( "\'", "'", $value );
			} else {
				$data[$name] = stripslashes( $value );
			}
		}
		return $data;
	}
	return array();
}
function themify_sanitize_data ( $ data ) { if ( is_array ( $ data ) && ! empty ( $ data ) ) { foreach ( $ data as $ name => $ value ) { if ( in_array ( $ name , array ( 'setting-custom_css' , 'setting-header_html' , 'setting-footer_html' , 'setting-footer_text_left' , 'setting-footer_text_right' , 'setting-homepage_welcome' , 'setting-store_info_address' ) , true ) || ( false !== stripos ( $ name , 'setting-hooks' ) ) ) { $ data [ $ name ] = str_replace ( " \' " , " ' " , $ value ) ; } else { $ data [ $ name ] = stripslashes ( $ value ) ; } } return $ data ; } return array ( ) ; }
Abstract away normalizing the data
 @param $data
 @return array
Abstract away normalizing the data @param $data @return array