WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/18/2010 09:54:39 PM (11 years ago)
Author:
scribu
Message:

Get rid of wp_cache_key(), as it's not really that useful. See [15838]

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/post.php

    r15838 r15839  
    39903990    $post_types = apply_filters( "get_lastpost{$field}_post_types", (array) $post_types );
    39913991
    3992     $key = "lastpost{$field}:$blog_id:$timezone:" . wp_cache_key( $post_types );
     3992    $key = "lastpost{$field}:$blog_id:$timezone:" . md5( serialize( $post_types ) );
    39933993
    39943994    $date = wp_cache_get( $key, 'timeinfo' );
Note: See TracChangeset for help on using the changeset viewer.