• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Yoast / wordpress-seo / bd19b056d0e3aeba531997bbd20f1153cb192a7f

21 Apr 2025 03:51PM UTC coverage: 52.286% (-2.2%) from 54.437%
bd19b056d0e3aeba531997bbd20f1153cb192a7f

Pull #22151

github

web-flow
Merge 1492b0a05 into 7346229f6
Pull Request #22151: 439 UI library stepper improvement

7803 of 13852 branches covered (56.33%)

Branch coverage included in aggregate %.

5 of 5 new or added lines in 1 file covered. (100.0%)

2223 existing lines in 188 files now uncovered.

28850 of 56249 relevant lines covered (51.29%)

42373.78 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/admin/views/form/select.php
1
<?php
2
/**
3
 * WPSEO plugin file.
4
 *
5
 * @package WPSEO\Admin
6
 *
7
 * @uses string $attributes Additional attributes for the select.
8
 * @uses string $name       Value for the select name attribute.
9
 * @uses string $id         ID attribute for the select.
10
 * @uses array  $options    Array with the options to show.
11
 * @uses string $selected   The current set options.
12
 */
13

14
if ( ! defined( 'WPSEO_VERSION' ) ) {
×
15
        header( 'Status: 403 Forbidden' );
×
16
        header( 'HTTP/1.1 403 Forbidden' );
×
17
        exit();
×
18
}
19

20
?>
21
<?php /* phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Reason: $attributes is properly escaped in parse_attribute via get_attributes in class-yoast-input-select.php. */ ?>
UNCOV
22
<select <?php echo $attributes; ?>name="<?php echo esc_attr( $name ); ?>" id="<?php echo esc_attr( $id ); ?>">
×
UNCOV
23
        <?php foreach ( $options as $option_attribute_value => $option_html_value ) : ?>
×
UNCOV
24
        <option value="<?php echo esc_attr( $option_attribute_value ); ?>"<?php echo selected( $selected, $option_attribute_value, false ); ?>><?php echo esc_html( $option_html_value ); ?></option>
×
25
        <?php endforeach; ?>
26
</select>
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc