Sanitize "cat" query var and cast to int before looking for a category template
git-svn-id: http://svn.automattic.com/wordpress/branches/2.3@7586 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
5ca1d6a092
commit
819c7ad8c2
|
@ -495,7 +495,11 @@ function &get_terms($taxonomies, $args = '') {
|
|||
}
|
||||
|
||||
$key = md5( serialize( $args ) . serialize( $taxonomies ) );
|
||||
if ( $_GET['taxonomy_test'] )
|
||||
$timer_start = time();
|
||||
if ( $cache = wp_cache_get( 'get_terms', 'terms' ) ) {
|
||||
if ( $_GET['taxonomy_test'] )
|
||||
mail('markjaquith@gmail.com', 'MM Debug ' . $timer_start - time() , print_r($cache, true));
|
||||
if ( isset( $cache[ $key ] ) )
|
||||
return apply_filters('get_terms', $cache[$key], $taxonomies, $args);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue