This plugin checks now, if the publish plugin is installed->if it is, then do an approval check
If publish plugin is installed ignore unproved pages
Removed unused variable
Remove unused variable