Roger Ailes is advising Trump ahead of presidential debates

Mr. Ailes is aiding Mr. Trump’s team as it turns its attention to the first debate with Hillary Clinton, the Democratic nominee, on Sept. 26 on Long Island, according to three people briefed on the move, who insisted on anonymity because they were not authorized to discuss the matter.

Two of them said that Mr. Ailes’s role could extend beyond the debates, which Mr. Trump’s advisers see as crucial to vaulting him back into strong contention for the presidency after a series of self-inflicted wounds that have eroded his standing in public opinion polls.

It was not clear when Mr. Ailes began helping the campaign. He resigned his post at Fox News on July 21 amid an investigation into allegations of sexual harassment by former female employees that occurred after a lawsuit by the former anchor Gretchen Carlson.