Make WordPress Core


Ignore:
Timestamp:
03/23/2007 03:18:00 AM (19 years ago)
Author:
ryan
Message:

Big int patch for 2.1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.1/wp-includes/functions.php

    r5057 r5092  
    567567        $count = count( $post_id_array);
    568568        for ( $i = 0; $i < $count; $i++ ) {
    569                 $post_id = $post_id_array[ $i ];
     569                $post_id = (int) $post_id_array[ $i ];
    570570                if ( isset( $category_cache[$blog_id][$post_id] ) ) {
    571571                        unset( $post_id_array[ $i ] );
     
    621621        $count = count( $post_id_array);
    622622        for ( $i = 0; $i < $count; $i++ ) {
    623                 $post_id = $post_id_array[ $i ];
     623                $post_id = (int) $post_id_array[ $i ];
    624624                if ( isset( $post_meta_cache[$blog_id][$post_id] ) ) { // If the meta is already cached
    625625                        unset( $post_id_array[ $i ] );
Note: See TracChangeset for help on using the changeset viewer.