Make WordPress Core


Ignore:
Timestamp:
03/23/2007 02:05:29 AM (20 years ago)
Author:
matt
Message:

Ryan slays the dragon. (Some of these return WP_Error objects.)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/custom-header.php

    r5087 r5089  
    216216
    217217                // Save the data
    218                 $id = (int) wp_insert_attachment($object, $file);
     218                $id = wp_insert_attachment($object, $file);
    219219
    220220                $upload = array('file' => $file, 'id' => $id);
Note: See TracChangeset for help on using the changeset viewer.