(15 . 11)(15 . 6)
29269 if (!current_user_can('upload_files'))
29270 wp_die(__('You do not have permission to upload files.'));
29271
29272 wp_enqueue_script('swfupload');
29273 wp_enqueue_script('swfupload-swfobject');
29274 wp_enqueue_script('swfupload-queue');
29275 wp_enqueue_script('swfupload-handlers');
29276
29277 @header('Content-Type: ' . get_option('html_type') . '; charset=' . get_option('blog_charset'));
29278
29279 // IDs should be integers
(63 . 23)(58 . 8)
29281
29282 <?php media_upload_form(); ?>
29283
29284 <script type="text/javascript">
29285 jQuery(function($){
29286 var preloaded = $(".media-item.preloaded");
29287 if ( preloaded.length > 0 ) {
29288 preloaded.each(function(){prepareMediaItem({id:this.id.replace(/[^0-9]/g, '')},'');});
29289 }
29290 updateMediaForm();
29291 post_id = 0;
29292 shortform = 1;
29293 });
29294 </script>
29295 <input type="hidden" name="post_id" id="post_id" value="0" />
29296 <?php wp_nonce_field('media-form'); ?>
29297 <div id="media-items"> </div>
29298 <p>
29299 <input type="submit" class="button savebutton" name="save" value="<?php echo attribute_escape( __( 'Save all changes' ) ); ?>" />
29300 </p>
29301 </form>
29302 </div>
29303