The song was penned by the American songwriter Dianne Warren, who has written numerous hits for the likes of Cher ("If I Could Turn Back Time
"), Toni Braxton ("Un-Break My Heart
") and Aerosmith ("I Don't Want to Miss a Thing
Warren wrote the song as "The Good S--t," but the title was sanitized for broader appeal. "I got censored by a hardcore rapper, which I find amazingly awesome," she said. Warren told TMZ that she smoked a little weed with Snoop at the session.