Stopping People Viewing Draft Posts

Yes, you (read: the logged in user) will be able to see the drafted post. But, a guest will not be able to read it.

To test it, login to one browser and create a draft. See its URL in another browser where you don’t login (no cookie, etc).

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)