Make WordPress Core

Changeset 23290


Ignore:
Timestamp:
01/05/2013 03:50:28 AM (12 years ago)
Author:
nacin
Message:

Whenever we have compat fields to render, send a dummy menu_order field (which was always sent in 3.4) to ensure an unchecked checkbox can still be processed by attachment_fields_to_save. fixes #22868.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/media.php

    r23095 r23290  
    14181418    }
    14191419
     1420    if ( $item )
     1421        $item = '<input type="hidden" name="attachments[' . $attachment_id . '][menu_order]" value="' . esc_attr( $post->menu_order ) . '" />' . $item;
     1422
    14201423    return array(
    14211424        'item'   => $item,
Note: See TracChangeset for help on using the changeset viewer.