Changeset 55990 for trunk/src/wp-admin/includes/media.php
- Timestamp:
- 06/22/2023 02:55:47 PM (6 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/media.php
r55988 r55990 1355 1355 $post = get_post( $attachment_id ); 1356 1356 1357 if ( 'image' === substr( $post->post_mime_type, 0, 5) ) {1357 if ( str_starts_with( $post->post_mime_type, 'image' ) ) { 1358 1358 $url = $attachment['url']; 1359 1359 $align = ! empty( $attachment['align'] ) ? $attachment['align'] : 'none'; … … 1466 1466 1467 1467 // This was formerly in image_attachment_fields_to_edit(). 1468 if ( 'image' === substr( $post->post_mime_type, 0, 5) ) {1468 if ( str_starts_with( $post->post_mime_type, 'image' ) ) { 1469 1469 $alt = get_post_meta( $post->ID, '_wp_attachment_image_alt', true ); 1470 1470 … … 3221 3221 </div> 3222 3222 <div class="wp_attachment_details edit-form-section"> 3223 <?php if ( 'image' === substr( $post->post_mime_type, 0, 5) ) : ?>3223 <?php if ( str_starts_with( $post->post_mime_type, 'image' ) ) : ?> 3224 3224 <p class="attachment-alt-text"> 3225 3225 <label for="attachment_alt"><strong><?php _e( 'Alternative Text' ); ?></strong></label><br />
Note: See TracChangeset
for help on using the changeset viewer.