Changeset 35760 for trunk/src/wp-admin/includes/ajax-actions.php
- Timestamp:
- 12/03/2015 05:16:57 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/ajax-actions.php
r35749 r35760 2571 2571 $url = empty( $attachment['url'] ) ? '' : $attachment['url']; 2572 2572 if ( strpos( $url, 'attachment_id') || get_attachment_link( $id ) == $url ) { 2573 $rel = ' rel="attachment wp-att-' . $id . '"';2573 $rel = 'attachment wp-att-' . $id; 2574 2574 } 2575 2575 … … 2594 2594 $html = isset( $attachment['post_title'] ) ? $attachment['post_title'] : ''; 2595 2595 if ( ! empty( $url ) ) { 2596 $html = '<a href="' . esc_url( $url ) . '"' . $rel . '>' . $html . '</a>';2596 $html = '<a href="' . esc_url( $url ) . '"' . 'rel="' . esc_attr( $rel ) . '">' . $html . '</a>'; 2597 2597 } 2598 2598 }
Note: See TracChangeset
for help on using the changeset viewer.