ui: correct label association for target matching method

This commit is contained in:
Stefan Kalscheuer 2020-10-19 12:01:23 +02:00
parent 06a7b1677a
commit 2f8939b363
2 changed files with 5 additions and 2 deletions

View File

@ -90,6 +90,9 @@ Same for IPv6 prefixes like _2001:db8:a0b:12f0::/64_.
## Changelog ## ## Changelog ##
### 1.6.0 / unreleased ###
* Minor accessibility fixes on settings page
### 1.5.2 / 03.09.2020 ### ### 1.5.2 / 03.09.2020 ###
* Minor translation updates * Minor translation updates
* Declared compatibility with WordPress 5.5 * Declared compatibility with WordPress 5.5

View File

@ -290,7 +290,7 @@ if ( ! empty( $_POST['statifyblacklist'] ) ) {
</label> </label>
</th> </th>
<td> <td>
<select name="statifyblacklist[target][regexp]" id="statify-blacklist_referer_regexp"> <select name="statifyblacklist[target][regexp]" id="statify-blacklist_target_regexp">
<option value="<?php print esc_attr( StatifyBlacklist::MODE_NORMAL ); ?>" <?php selected( StatifyBlacklist::$options['target']['regexp'], StatifyBlacklist::MODE_NORMAL ); ?>> <option value="<?php print esc_attr( StatifyBlacklist::MODE_NORMAL ); ?>" <?php selected( StatifyBlacklist::$options['target']['regexp'], StatifyBlacklist::MODE_NORMAL ); ?>>
<?php esc_html_e( 'Exact', 'statify-blacklist' ); ?> <?php esc_html_e( 'Exact', 'statify-blacklist' ); ?>
</option> </option>
@ -325,7 +325,7 @@ if ( ! empty( $_POST['statifyblacklist'] ) ) {
?></textarea> ?></textarea>
<p class="description"> <p class="description">
(<?php esc_html_e( 'Add one target URL each line, e.g.', 'statify-blacklist' ); ?> /, /test/page/, /?page_id=123) <?php esc_html_e( 'Add one target URL each line, e.g.', 'statify-blacklist' ); ?> /, /test/page/, /?page_id=123
</p> </p>
</td> </td>
</tr> </tr>