Tampa Bay Buccaneers cornerback Eric Wright, shown in 2012, was traded to the San Francisco 49ers Friday but sent back to the Bucs on Monday after failing a physical. / Marcio Jose Sanchez, AP

by Kevin Manahan, USA TODAY Sports

by Kevin Manahan, USA TODAY Sports

The San Francisco 49ers apparently were willing to live with cornerback Eric Wright's legal problems, but not the physical ones.

Niners head coach Jim Harbaugh announced Monday that Wright had been shipped back to the Tampa Bay Buccaneers after failing a physical, and Wright's contract was then terminated by the Bucs, according to the NFL's transaction wire.

Neither the 49ers nor Bucs revealed why Wright failed the physical.

Hours after Wright had been traded Friday for a conditional pick in the 2014 draft, it was revealed that he had been arrested in Los Angeles on a misdemeanor DUI charge earlier in the month, according to the sheriff's department website. He was released the next day after posting $5,000 bond. His court date is scheduled for Aug. 7.

Wright, 27, also had been arrested in Los Angeles last year on suspicion of driving under the influence, but that charge was dismissed.

The Niners said they were told about the recent arrest before the trade.

"We are pleased to add Eric to our team," San Francisco general manager Trent Baalke said in a statement at the time. "As an organization, we have done our due diligence and anticipate Eric working hard to contribute to the 49ers."

Apparently, there was more due diligence to be done.

Wright parlayed a strong 2011 season with the Detroit Lions into a five-year, $35.3 million contract that included $15 million guaranteed from the Bucs, who were among the big spenders in NFL free agency last year.

But Wright started only 10 games for the Bucs, recording 39 tackles, one interception and one fumble recovery. He accepted a restructuring of the contract in April that reduced his scheduled 2013 salary from $7.75 million to $1.5 million, with another $1.5 million available in incentives. The last three years of the deal were erased.

That $7.75 million was fully guaranteed, but Wright's four-game suspension for violating the NFL's policy on performance-enhancing drugs â?? he said he took Adderall to deal with health issues â?? voided the guarantee. A grievance on the matter was denied.

The 49ers would have been Wright's fourth team in four seasons. He played his first four seasons with the Cleveland Browns, who drafted him in the second round (53rd overall) out of UNLV in 2007, before joining the Lions in 2011.

The Bucs swung an offseason trade with the New York Jets for all-pro cornerback Darrelle Revis, who could end up starting opposite Johnthan Banks, a rookie second-round pick out of Mississippi State.