Make WordPress Core

Ticket #19397: 19397.diff

File 19397.diff, 1.5 KB (added by scribu, 14 years ago)
  • wp-admin/includes/media.php

    diff --git wp-admin/includes/media.php wp-admin/includes/media.php
    index 0bf50c1..10b9d11 100644
    function get_media_item( $attachment_id, $args = null ) { 
    10851085        foreach ( $form_fields as $key => $val ) {
    10861086                if ( 'menu_order' == $key ) {
    10871087                        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>";
    10891089                        else
    10901090                                $order = "<input type='hidden' name='attachments[$attachment_id][menu_order]' value='" . esc_attr( $val['value'] ) . "' />";
    10911091
    function media_upload_gallery_form($errors) { 
    16021602        $form_action_url = admin_url("media-upload.php?type=$type&tab=gallery&post_id=$post_id");
    16031603        $form_action_url = apply_filters('media_upload_form_url', $form_action_url, $type);
    16041604        $form_class = 'media-upload-form validate';
    1605        
     1605
    16061606        if ( get_user_setting('uploader') )
    16071607                $form_class .= ' html-uploader';
    16081608?>
    jQuery(function($){ 
    16351635<table class="widefat" cellspacing="0">
    16361636<thead><tr>
    16371637<th><?php _e('Media'); ?></th>
    1638 <th class="order-head"><?php _e('Order'); ?></th>
    16391638<th class="actions-head"><?php _e('Actions'); ?></th>
    16401639</tr></thead>
    16411640</table>