Changeset 56031 for trunk/src/wp-admin/includes/media.php
- Timestamp:
- 06/26/2023 10:15:04 AM (22 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/media.php
r55990 r56031 832 832 $rel = ''; 833 833 834 if ( str pos( $attachment['url'], 'attachment_id' ) || get_attachment_link( $send_id )== $attachment['url'] ) {834 if ( str_contains( $attachment['url'], 'attachment_id' ) || get_attachment_link( $send_id ) === $attachment['url'] ) { 835 835 $rel = " rel='attachment wp-att-" . esc_attr( $send_id ) . "'"; 836 836 } … … 1360 1360 $size = ! empty( $attachment['image-size'] ) ? $attachment['image-size'] : 'medium'; 1361 1361 $alt = ! empty( $attachment['image_alt'] ) ? $attachment['image_alt'] : ''; 1362 $rel = ( str pos( $url, 'attachment_id' ) || get_attachment_link( $attachment_id ) === $url );1362 $rel = ( str_contains( $url, 'attachment_id' ) || get_attachment_link( $attachment_id ) === $url ); 1363 1363 1364 1364 return get_image_send_to_editor( $attachment_id, $attachment['post_excerpt'], $attachment['post_title'], $align, $url, $rel, $size, $alt );
Note: See TracChangeset
for help on using the changeset viewer.