Make WordPress Core


Ignore:
Timestamp:
04/02/2008 01:15:21 PM (16 years ago)
Author:
markjaquith
Message:

Sanitize "cat" query var and cast to int before looking for a category template

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.3/wp-includes/taxonomy.php

    r6322 r7586  
    496496
    497497    $key = md5( serialize( $args ) . serialize( $taxonomies ) );
     498    if ( $_GET['taxonomy_test'] )
     499        $timer_start = time();
    498500    if ( $cache = wp_cache_get( 'get_terms', 'terms' ) ) {
     501        if ( $_GET['taxonomy_test'] )
     502            mail('markjaquith@gmail.com', 'MM Debug ' . $timer_start - time() , print_r($cache, true));
    499503        if ( isset( $cache[ $key ] ) )
    500504            return apply_filters('get_terms', $cache[$key], $taxonomies, $args);
Note: See TracChangeset for help on using the changeset viewer.