Use correct variable in wp_ajax_save_attachment(). see #21390.
git-svn-id: https://develop.svn.wordpress.org/trunk@22834 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
978add32e3
commit
1b8e6d9ac6
@ -1850,7 +1850,7 @@ function wp_ajax_save_attachment() {
|
||||
$post['post_excerpt'] = $changes['caption'];
|
||||
|
||||
if ( isset( $changes['alt'] ) ) {
|
||||
$alt = get_post_meta( $attachment_id, '_wp_attachment_image_alt', true );
|
||||
$alt = get_post_meta( $id, '_wp_attachment_image_alt', true );
|
||||
$new_alt = stripslashes( $changes['alt'] );
|
||||
if ( $alt != $new_alt ) {
|
||||
$new_alt = wp_strip_all_tags( $new_alt, true );
|
||||
|
Loading…
Reference in New Issue
Block a user