diff --git wp-admin/includes/media.php wp-admin/includes/media.php
index 0bf50c1..10b9d11 100644
|
|
|
function get_media_item( $attachment_id, $args = null ) { |
| 1085 | 1085 | foreach ( $form_fields as $key => $val ) { |
| 1086 | 1086 | if ( 'menu_order' == $key ) { |
| 1087 | 1087 | if ( $gallery ) |
| 1088 | | $order = "<div class='menu_order'> <input class='menu_order_input' type='text' id='attachments[$attachment_id][menu_order]' name='attachments[$attachment_id][menu_order]' value='" . esc_attr( $val['value'] ). "' /></div>"; |
| | 1088 | $order = "<div class='menu_order hide-if-js'> <input class='menu_order_input' type='text' id='attachments[$attachment_id][menu_order]' name='attachments[$attachment_id][menu_order]' value='" . esc_attr( $val['value'] ). "' /></div>"; |
| 1089 | 1089 | else |
| 1090 | 1090 | $order = "<input type='hidden' name='attachments[$attachment_id][menu_order]' value='" . esc_attr( $val['value'] ) . "' />"; |
| 1091 | 1091 | |
| … |
… |
function media_upload_gallery_form($errors) { |
| 1602 | 1602 | $form_action_url = admin_url("media-upload.php?type=$type&tab=gallery&post_id=$post_id"); |
| 1603 | 1603 | $form_action_url = apply_filters('media_upload_form_url', $form_action_url, $type); |
| 1604 | 1604 | $form_class = 'media-upload-form validate'; |
| 1605 | | |
| | 1605 | |
| 1606 | 1606 | if ( get_user_setting('uploader') ) |
| 1607 | 1607 | $form_class .= ' html-uploader'; |
| 1608 | 1608 | ?> |
| … |
… |
jQuery(function($){ |
| 1635 | 1635 | <table class="widefat" cellspacing="0"> |
| 1636 | 1636 | <thead><tr> |
| 1637 | 1637 | <th><?php _e('Media'); ?></th> |
| 1638 | | <th class="order-head"><?php _e('Order'); ?></th> |
| 1639 | 1638 | <th class="actions-head"><?php _e('Actions'); ?></th> |
| 1640 | 1639 | </tr></thead> |
| 1641 | 1640 | </table> |