Which of the following was the central idea of the Wilmot Proviso?

A. To forbid slavery in territories gained in the Mexican War
B. To keep the federal or territorial governments from banning slavery in territories gained in the Mexican War
C. To eliminate slavery from all states and territories in the United States
D. To ban slavery only in the newly acquired territories of New Mexico and California