Question:
Permited?
Answer:
The prevalent custom not to eat nuts or sour food is only on Rosh Hashanah. If they are part of an ingredient in a cake to enhance the flavor but cannot be discerned by themselves it is permitted because they are considered part of a cake.
Sources:
O:CH 583:2