Make WordPress Core


Ignore:
Timestamp:
09/26/2005 11:55:36 PM (19 years ago)
Author:
ryan
Message:

Image uploading widget from skeltoac. fixes #1710

File:
1 edited

Legend:

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

    r2906 r2921  
    1818if (0 == $post_ID) {
    1919    $form_action = 'post';
     20    $temp_ID = -1 * time();
     21    $form_extra = "<input type='hidden' name='temp_ID' value='$temp_ID' />";
    2022} else {
    2123    $form_action = 'editpost';
     
    173175<div id="advancedstuff" class="dbx-group" >
    174176
     177<fieldset id="imageuploading" class="dbx-box">
     178<h3 class="dbx-handle"><?php _e('Image Uploading') ?></h3>
     179<div class="dbx-content"><iframe src="image-uploading.php?action=view&amp;post=<?php echo 0 == $post_ID ? $temp_ID : $post_ID; ?>" id="imageup"></iframe></div>
     180</fieldset>
     181
    175182<fieldset id="postexcerpt" class="dbx-box">
    176183<h3 class="dbx-handle"><?php _e('Optional Excerpt') ?></h3>
Note: See TracChangeset for help on using the changeset viewer.