Don't add 'sticky' class in get_post_class() if 'ignore_sticky_posts' query var is set.

props jakub.tyrcha, johneckman.
fixes #18035.

git-svn-id: https://develop.svn.wordpress.org/trunk@30036 602fd350-edb4-49c9-b593-d223f7449a82