/**
  * Prepares a blog post query to look for bible references
  *
  * @param WP_Query $wp_query
  */
 function wpParseQuery($wp_query)
 {
     // Bible Reference tags should redirect to a ref search
     if (!empty($wp_query->query_vars['tag']) && isset($wp_query->query_vars['post_type']) && $this->index->postTypeIsIndexed($wp_query->query_vars['post_type'], 'post_tag')) {
         $ref = $this->index->core->refs->refFromTag($wp_query->query_vars['tag']);
         if ($ref->is_valid()) {
             wp_redirect($this->index->urlForRefStr($wp_query->query_vars['tag']));
             die;
         }
     }
     // Check to see if the search string is a bible reference
     if (!empty($wp_query->query_vars['s'])) {
         // TODO: use leftovers
         $ref = $this->index->core->refs->refFromTag(urldecode($wp_query->query_vars['s']));
         if ($ref->is_valid()) {
             // Store the ref in the WP_Query
             $wp_query->bfox_ref = $ref;
         }
     }
 }