Skip to content

Commit

Permalink
Merge pull request #18 from herewithme/patch-1
Browse files Browse the repository at this point in the history
Fix fatal "Using $this when not in object context" with get_wp_query_arg...
  • Loading branch information
roborourke committed Jun 23, 2015
2 parents f41aed8 + 4f25d45 commit d6a93bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hm-rewrites.php
Expand Up @@ -234,7 +234,7 @@ public function matched_rule() {
}

if ( $t->template ) {
if ( ! $this->get_wp_query_args() && $wp_query->is_404() ) {
if ( ! $t->get_wp_query_args() && $wp_query->is_404() ) {
include( get_404_template() );
} else if ( is_file( $t->template ) ) {
include( $t->template );
Expand Down

0 comments on commit d6a93bc

Please sign in to comment.