Make WordPress Core


Ignore:
Timestamp:
03/23/2007 12:59:21 AM (18 years ago)
Author:
matt
Message:

(int)er the dragon.

File:
1 edited

Legend:

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

    r5056 r5087  
    647647    $count = count( $post_id_array);
    648648    for ( $i = 0; $i < $count; $i++ ) {
    649         $post_id = $post_id_array[ $i ];
     649        $post_id = (int) $post_id_array[ $i ];
    650650        if ( isset( $category_cache[$blog_id][$post_id] ) ) {
    651651            unset( $post_id_array[ $i ] );
     
    701701    $count = count( $post_id_array);
    702702    for ( $i = 0; $i < $count; $i++ ) {
    703         $post_id = $post_id_array[ $i ];
     703        $post_id = (int) $post_id_array[ $i ];
    704704        if ( isset( $post_meta_cache[$blog_id][$post_id] ) ) { // If the meta is already cached
    705705            unset( $post_id_array[ $i ] );
Note: See TracChangeset for help on using the changeset viewer.