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

Yoast / wordpress-seo / 5066322038

pending completion
5066322038

push

github

GitHub
Merge pull request #20316 from Yoast/JRF/ghactions-run-more-selectively

2550 of 29012 relevant lines covered (8.79%)

0.32 hits per line

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

0.0
/src/helpers/wordpress-helper.php
1
<?php
2

3
namespace Yoast\WP\SEO\Helpers;
4

5
// phpcs:disable WordPress.WP.CapitalPDangit.MisspelledClassName -- It is spelled like `Wordpress_Helper` because of Yoast's naming conventions for classes, which would otherwise break dependency injection in some cases.
6

7
/**
8
 * A helper object for WordPress matters.
9
 */
10
class Wordpress_Helper {
11

12
        /**
13
         * Returns the WordPress version.
14
         *
15
         * @return string The version.
16
         */
17
        public function get_wordpress_version() {
18
                global $wp_version;
×
19

20
                return $wp_version;
×
21
        }
22
}
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