In the Battle of Málaga on 24 August 1704 Whitaker was still in command of the "Dorsetshire" and was at the centre of the action. In 1705 Whitaker commanded and in the first few months of 1706 he became Sir Edward Whitaker, rear-admiral of the blue, commanding a squadron of ships in the English Channel escorting the Duke of Marlborough to Holland in April.