Make WordPress Core


Ignore:
Timestamp:
11/29/2012 11:52:30 PM (12 years ago)
Author:
ryan
Message:

Introduce API to add back the description field in the new media popup.

Props nacin
fixes #22642

File:
1 edited

Legend:

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

    r22872 r22929  
    12881288        'errors' => null,
    12891289        'taxonomies' => false,
     1290        'description' => false,
    12901291    );
    12911292
     
    13261327
    13271328    unset( $form_fields['image-size'], $form_fields['align'], $form_fields['image_alt'],
    1328         $form_fields['post_title'], $form_fields['post_excerpt'], $form_fields['post_content'],
     1329        $form_fields['post_title'], $form_fields['post_excerpt'],
    13291330        $form_fields['url'], $form_fields['menu_order'], $form_fields['image_url'] );
     1331
     1332    if ( ! $args['description'] )
     1333        unset( $form_fields['post_content'] );
    13301334
    13311335    $media_meta = apply_filters( 'media_meta', '', $post );
Note: See TracChangeset for help on using the changeset viewer.