public_html/wp-content/plugins/wp-category-tag-could/classes/wpctc-settings.php
/**
		 * Validates submitted setting values before they get saved to the database. Invalid data will be overwritten with defaults.
		 *
		 * @mvc Model
		 *
		 * @param array $new_settings
		 *
		 * @return array
		 */
Validates submitted setting values before they get saved to the database. Invalid data will be overwritten with defaults.
@mvc Model



@return array
Validates submitted setting values before they get saved to the database . Invalid data will be overwritten with defaults . @mvc Model @return array
public function validate_settings( $new_settings ) {
			$new_settings = shortcode_atts( $this->settings, $new_settings );
			if ( ! is_string( $new_settings['db-version'] ) ) {
				$new_settings['db-version'] = WordPress_Category_Tag_Cloud::VERSION;
			}
			if (!isset($new_settings['general'])) {
				$new_settings['general'] = array();
			}
			$this->setting_zero_if_not_set($new_settings, 'general', 'clear-cache-on-save');
			$this->setting_zero_if_not_set($new_settings, 'general', 'do-not-load-scripts');
			WordPress_Category_Tag_Cloud::clear_caching_plugins();
			return $new_settings;
		}
public function validate_settings ( $ new_settings ) { $ new_settings = shortcode_atts ( $ this -> settings , $ new_settings ) ; if ( ! is_string ( $ new_settings [ 'db-version' ] ) ) { $ new_settings [ 'db-version' ] = WordPress_Category_Tag_Cloud :: VERSION ; } if ( ! isset ( $ new_settings [ 'general' ] ) ) { $ new_settings [ 'general' ] = array ( ) ; } $ this -> setting_zero_if_not_set ( $ new_settings , 'general' , 'clear-cache-on-save' ) ; $ this -> setting_zero_if_not_set ( $ new_settings , 'general' , 'do-not-load-scripts' ) ; WordPress_Category_Tag_Cloud :: clear_caching_plugins ( ) ; return $ new_settings ; }
Validates submitted setting values before they get saved to the database.
Validates submitted setting values before they get saved to the database .
/*
             * General Settings
             */