Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Correct template tag filter caching.

  • Loading branch information...
commit dffffaa33afb5880975caa9fe7894d1e703c2400 1 parent 076f53e
Michael Sisk authored
Showing with 9 additions and 3 deletions.
  1. +9 −3 webcomic.php
View
12 webcomic.php
@@ -418,9 +418,11 @@ public function get_relative_webcomics( $taxonomy = false, $terms = false, $id =
}
}
+ $r = apply_filters( 'webcomic_get_relative', $r, $id, $taxonomy, $terms );
+
wp_cache_add( $ck, $r, 'get_relative_webcomics' );
- return apply_filters( 'webcomic_get_relative', $r, $id, $taxonomy, $terms );
+ return $r;
}
/**
@@ -815,9 +817,11 @@ public function get_buffer_webcomics( $terms = false, $taxonomy = false ) {
if ( empty( $query ) )
return false;
+ $query = apply_filters( 'webcomic_get_buffer', $query, $term, $taxonomy );
+
wp_cache_add( $ck, $query, 'get_buffer_webcomics' );
- return apply_filters( 'webcomic_get_buffer', $query, $term, $taxonomy );
+ return $query;
}
/**
@@ -1865,9 +1869,11 @@ public function get_relative_webcomic_terms( $taxonomy, $term = false, $orderby
}
}
+ $r = apply_filters( 'webcomic_get_relative_terms', $r, $taxonomy, $term, $orderby );
+
wp_cache_add( $ck, $r, 'get_relative_webcomic_terms' );
- return apply_filters( 'webcomic_get_relative_terms', $r, $taxonomy, $term, $orderby );
+ return $r;
}
/**
Please sign in to comment.
Something went wrong with that request. Please try again.