Changeset 59750
- Timestamp:
- 02/01/2025 08:50:13 PM (4 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/media.php
r59554 r59750 94 94 $class = ''; 95 95 96 if ( $current == $callback ) {96 if ( $current === $callback ) { 97 97 $class = " class='current'"; 98 98 } … … 1173 1173 $name = esc_attr( $name ); 1174 1174 $output[] = "<input type='radio' name='attachments[{$post->ID}][align]' id='image-align-{$name}-{$post->ID}' value='$name'" . 1175 ( $checked == $name ? " checked='checked'" : '' ) .1175 ( $checked === $name ? " checked='checked'" : '' ) . 1176 1176 " /><label for='image-align-{$name}-{$post->ID}' class='align image-align-{$name}-label'>$label</label>"; 1177 1177 } … … 1223 1223 1224 1224 // If this size is the default but that's not available, don't select it. 1225 if ( $size == $check ) {1225 if ( $size === $check ) { 1226 1226 if ( $enabled ) { 1227 1227 $checked = " checked='checked'";
Note: See TracChangeset
for help on using the changeset viewer.