Make WordPress Core

Changeset 16389


Ignore:
Timestamp:
11/15/2010 06:06:57 PM (13 years ago)
Author:
nacin
Message:

Sanity cast. see #15192.

File:
1 edited

Legend:

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

    r16388 r16389  
    52695269function set_post_thumbnail( $post, $thumbnail_id ) {
    52705270    $post = get_post( $post );
     5271    $thumbnail_id = absint( $thumbnail_id );
    52715272    if ( $post && $thumbnail_id && get_post( $thumbnail_id ) ) {
    52725273        $thumbnail_html = wp_get_attachment_image( $thumbnail_id, 'thumbnail' );
Note: See TracChangeset for help on using the changeset viewer.