Yet both as a candidate and commander-in-chief, Trump has routinely criticized others for divulging restricted information.

In July, following then-FBI Director James Comey’s conclusion that Hillary Clinton and her State Department staffers “were extremely careless in their handling of very sensitive, highly classified information,” Trump branded the Democratic nominee as “unfit” for the presidency.

Crooked Hillary Clinton and her team "were extremely careless in their handling of very sensitive, highly classified information." Not fit!

In January, then-President-elect Trump assailed those within the U.S. government for sharing a report detailing alleged Russian hacking of top Democratic officials during the 2016 election, and demanded a congressional investigation.

I am asking the chairs of the House and Senate committees to investigate top secret intelligence shared with NBC prior to me seeing it.

In February, amid new reports of the Trump campaign’s contacts with Russia, the president tweeted that the “real scandal” wasn’t those reported ties but that “classified information” about them was being “given out … like candy.”

The real scandal here is that classified information is illegally given out by "intelligence" like candy. Very un-American!

Later that month, after reports that Trump’s chief of staff Reince Priebus had asked the FBI to push back against stories alleging the Trump campaign’s ties to the Kremlin, the president ripped the bureau for failing to stop the leaks.

“Classified information is being given to media that could have a devastating effect on U.S.,” Trump tweeted. “FIND NOW.”

The FBI is totally unable to stop the national security "leakers" that have permeated our government for a long time. They can't even……

In early March, after Attorney General Jeff Sessions was forced to recuse himself from the FBI’s investigation into the Trump campaign’s ties to Russia, Trump tweeted the “real story” was “all of the illegal leaks of classified and other information.” The president also called the focus on his campaign’s ties to Moscow a “witch hunt.”

Jeff Sessions is an honest man. He did not say anything wrong. He could have stated his response more accurately, but it was clearly not….

Trump’s not the only one in Washington who has a history of ripping rivals over their handling of U.S. intelligence.

In a lengthy Twitter thread, Comedy Central’s “Daily Show” documented the hypocrisy of Republicans—including House Speaker Paul Ryan and Sens. Ted Cruz and Marco Rubio—who were quick to criticize Clinton but did not immediately do the same to Trump.