WordPress.org

Make WordPress Core

Ticket #22868: 22868.diff

File 22868.diff, 563 bytes (added by nacin, 5 years ago)
  • wp-admin/includes/media.php

     
    14171417                $item .= '<input type="hidden" name="' . esc_attr( $hidden_field ) . '" value="' . esc_attr( $value ) . '" />' . "\n";
    14181418        }
    14191419
     1420        $item = '<input type="hidden" name="attachments[' . $attachment_id . '][menu_order]" value="' . esc_attr( $post->menu_order ) . '" />' . $item;
     1421
    14201422        return array(
    14211423                'item'   => $item,
    14221424                'meta'   => $media_meta,