Changeset 61453 for trunk/src/wp-admin/includes/media.php
- Timestamp:
- 01/09/2026 02:24:18 AM (10 months ago)
- File:
-
- 1 edited
-
trunk/src/wp-admin/includes/media.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/media.php
r61440 r61453 833 833 if ( isset( $send_id ) ) { 834 834 $attachment = wp_unslash( $_POST['attachments'][ $send_id ] ); 835 $html = isset( $attachment['post_title'] ) ? $attachment['post_title'] :'';835 $html = $attachment['post_title'] ?? ''; 836 836 837 837 if ( ! empty( $attachment['url'] ) ) { … … 1559 1559 } 1560 1560 1561 $item = get_media_item( $id, array( 'errors' => isset( $errors[ $id ] ) ? $errors[ $id ] :null ) );1561 $item = get_media_item( $id, array( 'errors' => $errors[ $id ] ?? null ) ); 1562 1562 1563 1563 if ( $item ) { … … 2104 2104 $upload_action_url = admin_url( 'async-upload.php' ); 2105 2105 $post_id = isset( $_REQUEST['post_id'] ) ? (int) $_REQUEST['post_id'] : 0; 2106 $_type = isset( $type ) ? $type :'';2107 $_tab = isset( $tab ) ? $tab :'';2106 $_type = $type ?? ''; 2107 $_tab = $tab ?? ''; 2108 2108 2109 2109 $max_upload_size = wp_max_upload_size(); … … 3657 3657 wp_add_id3_tag_data( $metadata, $data ); 3658 3658 3659 $file_format = isset( $metadata['fileformat'] ) ? $metadata['fileformat'] :null;3659 $file_format = $metadata['fileformat'] ?? null; 3660 3660 3661 3661 /** … … 3740 3740 wp_add_id3_tag_data( $metadata, $data ); 3741 3741 3742 $file_format = isset( $metadata['fileformat'] ) ? $metadata['fileformat'] :null;3742 $file_format = $metadata['fileformat'] ?? null; 3743 3743 3744 3744 /**
Note:
See TracChangeset
for help on using the changeset viewer.