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

Yoast / wordpress-seo / 442f9efb5d1ad05e5d8a4d04f7475113a071538b

29 Jan 2026 01:26PM UTC coverage: 53.451% (+0.5%) from 52.962%
442f9efb5d1ad05e5d8a4d04f7475113a071538b

push

github

thijsoo
Merge branch 'release/26.9' of github.com:Yoast/wordpress-seo into trunk

8848 of 16379 branches covered (54.02%)

Branch coverage included in aggregate %.

0 of 22 new or added lines in 3 files covered. (0.0%)

33044 of 61996 relevant lines covered (53.3%)

46512.94 hits per line

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

0.0
/src/conditionals/woocommerce-version-conditional.php
1
<?php
2

3
namespace Yoast\WP\SEO\Conditionals;
4

5
/**
6
 * Conditional that is only met when WooCommerce is active and version is 10.5 or higher.
7
 */
8
class WooCommerce_Version_Conditional implements Conditional {
9

10
        /**
11
         * The minimum WooCommerce version required.
12
         */
13
        private const REQUIRED_VERSION = '10.5';
14

15
        /**
16
         * Returns `true` when WooCommerce is installed, activated, and meets the minimum version.
17
         *
18
         * @return bool `true` when WooCommerce meets the version requirement.
19
         */
NEW
20
        public function is_met() {
×
NEW
21
                if ( ! \defined( 'WC_VERSION' ) ) {
×
NEW
22
                        return false;
×
23
                }
24

NEW
25
                return \version_compare( \WC_VERSION, self::REQUIRED_VERSION, '>=' );
×
26
        }
27
}
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