Permalink
Browse files

Correct template tag filter caching.

  • Loading branch information...
1 parent 076f53e commit dffffaa33afb5880975caa9fe7894d1e703c2400 Michael Sisk committed Mar 25, 2012
Showing with 9 additions and 3 deletions.
  1. +9 −3 webcomic.php
View
@@ -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;
}
/**

0 comments on commit dffffaa

Please sign in to comment.