Changeset 23563 for trunk/wp-admin/includes/media.php
- Timestamp:
- 03/01/2013 05:00:25 PM (13 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/includes/media.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/media.php
r23554 r23563 469 469 if ( isset($attachment['image_alt']) ) { 470 470 $image_alt = get_post_meta($attachment_id, '_wp_attachment_image_alt', true); 471 if ( $image_alt != stripslashes($attachment['image_alt']) ) {472 $image_alt = wp_strip_all_tags( stripslashes($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 ); 473 473 // update_meta expects slashed 474 474 update_post_meta( $attachment_id, '_wp_attachment_image_alt', addslashes($image_alt) ); … … 502 502 503 503 if ( isset($send_id) ) { 504 $attachment = stripslashes_deep( $_POST['attachments'][$send_id] );504 $attachment = wp_unslash( $_POST['attachments'][$send_id] ); 505 505 506 506 $html = isset( $attachment['post_title'] ) ? $attachment['post_title'] : ''; … … 547 547 548 548 if ( isset( $_POST['media_type'] ) && 'image' != $_POST['media_type'] ) { 549 $title = esc_html( stripslashes( $_POST['title'] ) );549 $title = esc_html( wp_unslash( $_POST['title'] ) ); 550 550 if ( empty( $title ) ) 551 551 $title = esc_html( basename( $src ) ); … … 562 562 } else { 563 563 $align = ''; 564 $alt = esc_attr( stripslashes( $_POST['alt'] ) );564 $alt = esc_attr( wp_unslash( $_POST['alt'] ) ); 565 565 if ( isset($_POST['align']) ) { 566 $align = esc_attr( stripslashes( $_POST['align'] ) );566 $align = esc_attr( wp_unslash( $_POST['align'] ) ); 567 567 $class = " class='align$align'"; 568 568 }
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)