public function sanitize_installed_version( $value ) {
		$value = trim( (string) $value );

		if ( (bool) preg_match( '/[^\d\.]/', $value ) ) {
			add_settings_error(
				'soter_installed_version',
				'invalid_soter_installed_version',
				'Installed version can only contain the following characters: 0123456789.'
			);

			return $this->installed_version;
		}

		return $value;
	}
public function sanitize_installed_version( $value ) {
		$value = trim( (string) $value );

		if ( (bool) preg_match( '/[^\d\.]/', $value ) ) {
			add_settings_error(
				'soter_installed_version',
				'invalid_soter_installed_version',
				'Installed version can only contain the following characters: 0123456789.'
			);

			return $this->installed_version;
		}

		return $value;
	}
public function sanitize_installed_version ( $ value ) { $ value = trim ( ( string ) $ value ) ; if ( ( bool ) preg_match ( '/[^\d\.]/' , $ value ) ) { add_settings_error ( 'soter_installed_version' , 'invalid_soter_installed_version' , 'Installed version can only contain the following characters: 0123456789.' ) ; return $ this -> installed_version ; } return $ value ; }
Sanitize the installed version setting.

@param  string $value The value provided by the user.

@return string
Sanitize the installed version setting .