wpseek.com
A WordPress-centric search engine for devs and theme authors
media_upload_gallery_form › WordPress Function
Since2.5.0
Deprecatedn/a
› media_upload_gallery_form ( $errors )
Parameters: |
|
Defined at: |
|
Codex: |
Adds gallery form to upload iframe
Source
function media_upload_gallery_form( $errors ) { global $redir_tab, $type; $redir_tab = 'gallery'; media_upload_header(); $post_id = intval( $_REQUEST['post_id'] ); $form_action_url = admin_url( "media-upload.php?type=$type&tab=gallery&post_id=$post_id" ); /** This filter is documented in wp-admin/includes/media.php */ $form_action_url = apply_filters( 'media_upload_form_url', $form_action_url, $type ); $form_class = 'media-upload-form validate'; if ( get_user_setting( 'uploader' ) ) { $form_class .= ' html-uploader'; } ?> <script type="text/javascript"> jQuery(function($){ var preloaded = $(".media-item.preloaded"); if ( preloaded.length > 0 ) { preloaded.each(function(){prepareMediaItem({id:this.id.replace(/[^0-9]/g, '')},'');}); updateMediaForm(); } });