Make WordPress Core

Changeset 22200


Ignore:
Timestamp:
10/11/2012 09:37:44 PM (12 years ago)
Author:
koopersmith
Message:

Media Modal: Check for empty keys when saving attachment captions. see #21390, #21807.

File:
1 edited

Legend:

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

    r22173 r22200  
    18401840    $args    = array();
    18411841
    1842     if ( $changes['title'] )
     1842    if ( ! empty( $changes['title'] ) )
    18431843        $args['post_title'] = $changes['title'];
    18441844
    1845     if ( $changes['caption'] )
     1845    if ( ! empty( $changes['caption'] ) )
    18461846        $args['post_excerpt'] = $changes['caption'];
    18471847
Note: See TracChangeset for help on using the changeset viewer.