Changeset 23578 for trunk/wp-admin/includes/media.php
- Timestamp:
- 03/01/2013 05:58:43 PM (13 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/includes/media.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/media.php
r23563 r23578 468 468 469 469 if ( isset($attachment['image_alt']) ) { 470 $image_alt = get_post_meta($attachment_id, '_wp_attachment_image_alt', true);471 if ( $image_alt != wp_unslash($attachment['image_alt']) ) {472 $image_alt = wp_strip_all_tags( wp_unslash($attachment['image_alt']), true );470 $image_alt = wp_unslash( $attachment['image_alt'] ); 471 if ( $image_alt != get_post_meta($attachment_id, '_wp_attachment_image_alt', true) ) { 472 $image_alt = wp_strip_all_tags( $image_alt, true ); 473 473 // update_meta expects slashed 474 update_post_meta( $attachment_id, '_wp_attachment_image_alt', addslashes($image_alt) );474 update_post_meta( $attachment_id, '_wp_attachment_image_alt', wp_slash( $image_alt ) ); 475 475 } 476 476 }
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)