WordPress.org

Make WordPress Core

Changeset 7974


Ignore:
Timestamp:
05/21/2008 06:29:46 PM (10 years ago)
Author:
ryan
Message:

Add sorting to gallery. Props AaronCampbell. fixes #6988

Location:
trunk/wp-admin
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/css/colors-classic.css

    r7951 r7974  
    6464}
    6565
    66 ul.widget-control-list .sorthelper {
     66.sorthelper {
    6767    background-color: #ccf3fa;
    6868}
  • trunk/wp-admin/css/colors-fresh.css

    r7951 r7974  
    6464}
    6565
    66 ul.widget-control-list .sorthelper {
     66.sorthelper {
    6767    background-color: #ccf3fa;
    6868}
  • trunk/wp-admin/css/media.css

    r7862 r7974  
    217217
    218218#media-upload .media-item {
     219    cursor:move;
    219220    position: relative;
    220221    border-bottom-width: 1px;
  • trunk/wp-admin/includes/media.php

    r7962 r7974  
    200200        if ( isset($attachment['post_excerpt']) )
    201201            $post['post_excerpt'] = $attachment['post_excerpt'];
     202        if ( isset($attachment['menu_order']) )
     203            $post['menu_order'] = $attachment['menu_order'];
    202204
    203205        $post = apply_filters('attachment_fields_to_save', $post, $attachment);
     
    400402    }
    401403
     404    wp_enqueue_script('admin-gallery');
    402405    return wp_iframe( 'media_upload_gallery_form', $errors );
    403406}
     
    535538                </script>\n",
    536539            'helps'      => __('Enter a link URL or click above for presets.'),
     540        ),
     541        'menu_order'   => array(
     542            'label'      => __('Order'),
     543            'value'      => $edit_post->menu_order
    537544        ),
    538545    );
Note: See TracChangeset for help on using the changeset viewer.