WordPress.org

Make WordPress Core

Changeset 22834


Ignore:
Timestamp:
11/26/2012 02:50:01 AM (8 years ago)
Author:
nacin
Message:

Use correct variable in wp_ajax_save_attachment(). see #21390.

File:
1 edited

Legend:

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

    r22768 r22834  
    18511851
    18521852    if ( isset( $changes['alt'] ) ) {
    1853         $alt = get_post_meta( $attachment_id, '_wp_attachment_image_alt', true );
     1853        $alt = get_post_meta( $id, '_wp_attachment_image_alt', true );
    18541854        $new_alt = stripslashes( $changes['alt'] );
    18551855        if ( $alt != $new_alt ) {
Note: See TracChangeset for help on using the changeset viewer.