A former Donald Trump adviser said Friday that the wave of negative news resulting from the presumptive Republican nominee's attacks on a US federal judge ultimately led to the firing of campaign manager Corey Lewandowski.

"I think there are a lot of lessons learned all around," Caputo said of the Curiel attacks.

Trump's Curiel comments were strongly rebuked at the time by House Speaker Paul Ryan and condemned from all sides of the party. Trump had insisted that Curiel's Mexican heritage compromised his impartiality in cases involving Trump University because of Trump's campaign pledge to build a wall along the US-Mexico border.

"I think the leadership change came out of that as well," Caputo said, in apparent reference to Lewandowski's firing. "And you're going to see a whole different campaign going forward."

PALM BEACH, FL - MARCH 11: Corey Lewandowski campaign manager for Republican presidential candidate Donald Trump speaks with the media before former presidential candidate Ben Carson gives his endorsement to Mr. Trump at the Mar-A-Lago Club on March 11, 2016 in Palm Beach, Florida. Presidential candidates continue to campaign before Florida's March 15th primary day. (Photo by Joe Raedle/Getty Images)

Donald Trump, president and chief executive of Trump Organization Inc. and 2016 Republican presidential candidate, center, pauses while speaking during a news conference with his son Eric Trump, right, and Corey Lewandowski, campaign manager for Trump, left, at the Mar-A-Lago Club in Palm Beach, Florida, U.S., on Tuesday, March 15, 2016. Billionaire Trump fell short of his goal of winning the two key states he needed to clear most of the Republican presidential field, securing a huge victory in Florida to knock out Senator Marco Rubio while losing Ohio to Governor John Kasich. Photographer: Andrew Harrer/Bloomberg via Getty Images

Corey Lewandowski, campaign manager for 2016 Republican presidential candidate Donald Trump, speaks to members of the media before a news conference at the Mar-A-Lago Club in Palm Beach, Florida, U.S., on Friday, March 11, 2016. Ben Carson, who recently ended his quest for Republican presidential nomination, endorsed his onetime rival Donald Trump Friday striking a blow to presidential candidate Senator Ted Cruz, who had courted Carson because they appeal to many of the same religious-minded voters. Photographer: Andrew Harrer/Bloomberg via Getty Images

Corey Lewandowski, campaign manager for Donald Trump's 2016 Republican presidential campaign, speaks on the telephone while at his desk inside the Trump campaign headquarters located in Trump Tower in New York, U.S., on Wednesday, Aug. 26, 2015. The billionaire front-runner for the Republican nomination continues his momentum this fall by preparing media ads and holding public appearance throughout the country. Photographer: Ali Elkin/Bloomberg via Getty Images

Republican Presidential candidate Donald Trump's campaign manager Corey Lewandowski (C) is seen allegedly grabbing the arm of reporter Michelle Fields in this still frame from video taken March 8, 2016 and released by the Jupiter (Florida) Police Department March 29, 2016. Lewandowski, 42, was arrested in Florida on Tuesday and charged with battery, police records show. REUTERS/Jupiter Police Department/Handout via Reuters THIS IMAGE HAS BEEN SUPPLIED BY A THIRD PARTY. IT IS DISTRIBUTED, EXACTLY AS RECEIVED BY REUTERS, AS A SERVICE TO CLIENTS. FOR EDITORIAL USE ONLY. NOT FOR SALE FOR MARKETING OR ADVERTISING CAMPAIGNS

Republican Presidential candidate Donald Trump's campaign manager Corey Lewandowski (C) is seen allegedly grabbing the arm of reporter Michelle Fields in this still frame from video taken March 8, 2016 and released by the Jupiter (Florida) Police Department March 29, 2016. Lewandowski, 42, was arrested in Florida on Tuesday and charged with battery, police records show. REUTERS/Jupiter Police Department/Handout via Reuters FOR EDITORIAL USE ONLY. NOT FOR SALE FOR MARKETING OR ADVERTISING CAMPAIGNS

Corey Lewandowski (R) campaign manager for Republican U.S. presidential candidate Donald Trump (C) reaches between Trump and a U.S. Secret Service agent (2nd R) towards Breitbart News reporter Michelle Fields (L) after a news conference held at Trump's National Golf Club in Jupiter, Florida, March 8, 2016. Lewandowski, 42, was arrested in Florida on Tuesday and charged with battery for his interaction with Fields at the event, police records show. Picture taken March 8, 2016. REUTERS/Joe Skipper/Files TPX IMAGES OF THE DAY

JUPITER, FLORIDA - MARCH 29: A police car sits outside the police department on March 29, 2016 in Jupiter, Florida. Donald Trump's campaign manager Corey Lewandowski has been charged with simple battery after allegedly grabbing a reporter by the arm at a campaign event. (Photo by Mychal Watts/Getty Images)