Make WordPress Core


Ignore:
Timestamp:
07/06/2008 04:40:15 PM (17 years ago)
Author:
ryan
Message:

Make sure attachment meta data is an array. Props nbachiyski. fixes #7252

File:
1 edited

Legend:

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

    r8203 r8261  
    24252425    if ( !$post =& get_post( $post_id ) )
    24262426        return false;
    2427     if ( !$imagedata = wp_get_attachment_metadata( $post->ID ) )
     2427    if ( !is_array( $imagedata = wp_get_attachment_metadata( $post->ID ) ) )
    24282428        return false;
    24292429
Note: See TracChangeset for help on using the changeset viewer.