By James Hibberd
Updated April 05, 2012 at 06:59 PM EDT
David Walton
Credit: Getty Images

David Walton’s NBC comedy Bent might have tanked in recent weeks, but the handsome actor has landed another gig.

Sources confirm Walton has joined the cast of an untitled CBS comedy pilot, replacing the previously cast Bryan Greenberg, who left the show after a table read (Hollywood, cruel town). Walton will take over the lead role of a notorious womanizer who realizes that the love of his life is actually his best friend of 15 years (JoAnna Garcia). The only problem is, they run a business together and she’s engaged. The comedy is written and produced by Greg Malins and Greg Berlanti and was originally circulated under the stunt title Oh F–k, It’s You.

Read more: