Skip to content

Commit 0536c0b

Browse files
Use selected() WP functions
1 parent b512449 commit 0536c0b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

admin/settings.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,10 @@
2828
</label>
2929
</th>
3030
<td>
31-
<select name="jquery-version" id="jquery-version" <?php echo ( ! is_wp_version_compatible( '5.6-alpha' ) ? 'disabled="disabled"' : '' ); ?>>
32-
<option value="no" <?php echo ( 'no' === $downgraded ? 'selected="selected"' : '' ); ?>><?php _ex( 'Default from WordPress', 'jQuery version', 'enable-jquery-migrate-helper' ); ?></option>
33-
<option value="yes" <?php echo ( 'yes' === $downgraded ? 'selected="selected"' : '' ); ?>><?php _ex( 'Legacy 1.12.4-wp', 'jQuery version', 'enable-jquery-migrate-helper' ); ?></option>
31+
<select name="jquery-version" id="jquery-version" <?php echo ( ! is_wp_version_compatible( '5.6-alpha' ) ? 'disabled="disabled"' : '' ); ?>>
32+
<option value="no" <?php selected( $downgraded, 'no') ?>><?php
33+
_ex( 'Default from WordPress', 'jQuery version', 'enable-jquery-migrate-helper' ); ?></option>
34+
<option value="yes" <?php selected( $downgraded, 'yes') ?>><?php _ex( 'Legacy 1.12.4-wp', 'jQuery version', 'enable-jquery-migrate-helper' ); ?></option>
3435
</select>
3536
<?php if ( ! is_wp_version_compatible( '5.6-alpha' ) ) : ?>
3637
<p class="description">

0 commit comments

Comments
 (0)