Make WordPress Core


Ignore:
Timestamp:
11/17/2005 03:19:19 AM (20 years ago)
Author:
matt
Message:

Some changes and tweaks to how the inline image uploading works.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/edit-page-form.php

    r3100 r3126  
    151151$uploading_iframe_ID = (0 == $post_ID ? $temp_ID : $post_ID);
    152152$uploading_iframe_src = "inline-uploading.php?action=view&post=$uploading_iframe_ID";
     153if ( !$attachments = $wpdb->get_results("SELECT ID FROM $wpdb->posts WHERE post_parent = '$uploading_iframe_ID'") )
     154    $uploading_iframe_src = "inline-uploading.php?action=upload&post=$uploading_iframe_ID";
    153155$uploading_iframe_src = apply_filters('uploading_iframe_src', $uploading_iframe_src);
    154156if ( false != $uploading_iframe_src )
Note: See TracChangeset for help on using the changeset viewer.