git-svn-id: https://develop.svn.wordpress.org/trunk@22200 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
1a766217d9
commit
c2f4afe37e
@ -1839,10 +1839,10 @@ function wp_ajax_save_attachment() {
|
|||||||
$changes = $_REQUEST['changes'];
|
$changes = $_REQUEST['changes'];
|
||||||
$args = array();
|
$args = array();
|
||||||
|
|
||||||
if ( $changes['title'] )
|
if ( ! empty( $changes['title'] ) )
|
||||||
$args['post_title'] = $changes['title'];
|
$args['post_title'] = $changes['title'];
|
||||||
|
|
||||||
if ( $changes['caption'] )
|
if ( ! empty( $changes['caption'] ) )
|
||||||
$args['post_excerpt'] = $changes['caption'];
|
$args['post_excerpt'] = $changes['caption'];
|
||||||
|
|
||||||
if ( $args )
|
if ( $args )
|
||||||
|
Loading…
Reference in New Issue
Block a user