Wifi shield has female header on the bottom that plugs onto ICSP header to pick up SCK, MISO, MOSI, and Reset/Gnd/Power. You can see it here next to the uC body.