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

Yoast / wordpress-seo / 0b8a6e27770138bf87283d53e22963839ec6299f

04 Feb 2026 11:13AM UTC coverage: 53.517% (+0.1%) from 53.422%
0b8a6e27770138bf87283d53e22963839ec6299f

push

github

leonidasmi
Merge branch 'trunk' into feature/task-list-phase-2

8876 of 16413 branches covered (54.08%)

Branch coverage included in aggregate %.

67 of 165 new or added lines in 21 files covered. (40.61%)

3 existing lines in 3 files now uncovered.

33185 of 62181 relevant lines covered (53.37%)

46374.58 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