Actually, if you listened to Trump's press conference some 7-10 days ago when a reporter asked about a specific military strategy/plan, Trump noted very clearly, unlike idiotic administration's from the past (all after George I) he will not broadcast about specific military plans to the press and obviously, all the enemies too.
I still remember decades ago when the press, notified well in advanced, greeted US Troops on their night time landing in Somalia, which endangered all, because the terrorists there too knew when and where they were landing.
Just like with the Mosul debacle from the last few months were all moves/tactics were noted in the press, well before they were initiated.