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

Yoast / wordpress-seo / b19365a45b84d9605f46ad9981f3ac1e2f1d24db

29 Jan 2026 11:42AM UTC coverage: 52.814% (-0.5%) from 53.336%
b19365a45b84d9605f46ad9981f3ac1e2f1d24db

Pull #22923

github

web-flow
Merge 0b96cc7ee into 1b1918557
Pull Request #22923: Restore legacy Woo behavior of handling permalinks

8393 of 15820 branches covered (53.05%)

Branch coverage included in aggregate %.

0 of 20 new or added lines in 2 files covered. (0.0%)

32307 of 61243 relevant lines covered (52.75%)

47081.65 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