Changeset 60641 for trunk/src/wp-includes/media.php
- Timestamp:
- 08/15/2025 07:09:36 PM (10 months ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/media.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/media.php
r60477 r60641 1092 1092 $context = apply_filters( 'wp_get_attachment_image_context', 'wp_get_attachment_image' ); 1093 1093 1094 $attr = wp_parse_args( $attr, $default_attr ); 1095 $attr['width'] = $width; 1096 $attr['height'] = $height; 1094 $attr = wp_parse_args( $attr, $default_attr ); 1095 1096 // Ensure that the `$width` doesn't overwrite an already valid user-provided width. 1097 if ( ! isset( $attr['width'] ) || ! is_numeric( $attr['width'] ) ) { 1098 $attr['width'] = $width; 1099 } 1100 1101 // Ensure that the `$height` doesn't overwrite an already valid user-provided height. 1102 if ( ! isset( $attr['height'] ) || ! is_numeric( $attr['height'] ) ) { 1103 $attr['height'] = $height; 1104 } 1097 1105 1098 1106 $loading_optimization_attr = wp_get_loading_optimization_attributes(
Note: See TracChangeset
for help on using the changeset viewer.