/**
  * Clean up the global query object if necessary.
  */
 protected function cleanGlobals()
 {
     if (class_exists('WP_Query') && property_exists('WP_Query', '__posts')) {
         \WP_Query::$__posts = \WP_Query::$__data = array();
         \WP_Query::$__instance = null;
     }
     parent::cleanGlobals();
 }