Improve logic for determining whether to display QuickShare output and move it into a re-usable function. Fixes bugs with the logic as well.

git-svn-id: https://plugins.svn.wordpress.org/quickshare/trunk@755406 b8457f37-d9ea-0310-8a92-e5e31aec5664