• 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/tracking/class-tracking-theme-data.php
1
<?php
2
/**
3
 * WPSEO plugin file.
4
 *
5
 * @package WPSEO\Admin\Tracking
6
 */
7

8
/**
9
 * Represents the theme data.
10
 */
11
class WPSEO_Tracking_Theme_Data implements WPSEO_Collection {
12

13
        /**
14
         * Returns the collection data.
15
         *
16
         * @return array The collection data.
17
         */
18
        public function get() {
×
19
                $theme = wp_get_theme();
×
20

UNCOV
21
                return [
×
UNCOV
22
                        'theme' => [
×
23
                                'name'                 => $theme->get( 'Name' ),
×
24
                                'url'                  => $theme->get( 'ThemeURI' ),
×
25
                                'version'              => $theme->get( 'Version' ),
×
UNCOV
26
                                'author'               => [
×
27
                                        'name' => $theme->get( 'Author' ),
×
28
                                        'url'  => $theme->get( 'AuthorURI' ),
×
UNCOV
29
                                ],
×
30
                                'parentTheme'          => $this->get_parent_theme( $theme ),
×
31
                                'blockTemplateSupport' => current_theme_supports( 'block-templates' ),
×
32
                                'isBlockTheme'         => function_exists( 'wp_is_block_theme' ) && wp_is_block_theme(),
×
UNCOV
33
                        ],
×
UNCOV
34
                ];
×
35
        }
36

37
        /**
38
         * Returns the name of the parent theme.
39
         *
40
         * @param WP_Theme $theme The theme object.
41
         *
42
         * @return string|null The name of the parent theme or null.
43
         */
44
        private function get_parent_theme( WP_Theme $theme ) {
×
45
                if ( is_child_theme() ) {
×
46
                        return $theme->get( 'Template' );
×
47
                }
48

49
                return null;
×
50
        }
51
}
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