Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fix notice

  • Loading branch information...
commit edd42f1221f4037e5f19fdd732fed8cbf52d63ae 1 parent fc527a9
Joe Hoyle joehoyle authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  hm-core.rewrite.php
2  hm-core.rewrite.php
@@ -193,7 +193,7 @@ function hm_load_custom_templates( $template ) {
193 193 foreach( wp_parse_args( $hm_current_rewrite_rule[3]['post_query_properties'] ) as $property => $value )
194 194 $wp_query->$property = $value;
195 195
196   - if ( $hm_current_rewrite_rule[3]['query_callback'] && is_callable( $hm_current_rewrite_rule[3]['query_callback'] ) )
  196 + if ( ! empty( $hm_current_rewrite_rule[3]['query_callback'] ) && is_callable( $hm_current_rewrite_rule[3]['query_callback'] ) )
197 197 call_user_func_array( $hm_current_rewrite_rule[3]['query_callback'], array( $wp_query ) );
198 198 }
199 199

0 comments on commit edd42f1

Please sign in to comment.
Something went wrong with that request. Please try again.