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

Yoast / wordpress-seo / 6093932870

06 Sep 2023 07:14AM UTC coverage: 45.747% (-1.4%) from 47.154%
6093932870

push

github

marinakoleva
Merge branch 'trunk' of https://github.com/Yoast/wordpress-seo into feature/html-parser

69 of 129 new or added lines in 12 files covered. (53.49%)

928 existing lines in 20 files now uncovered.

12155 of 26570 relevant lines covered (45.75%)

3.38 hits per line

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

0.0
/src/functions.php
1
<?php
2
/**
3
 * WPSEO plugin file.
4
 *
5
 * @package WPSEO\Internals
6
 */
7

8
if ( ! defined( 'WPSEO_VERSION' ) ) {
9
        header( 'Status: 403 Forbidden' );
10
        header( 'HTTP/1.1 403 Forbidden' );
11
        exit();
12
}
13

14
use Yoast\WP\SEO\Main;
15

16
if ( is_dir( WPSEO_PATH . YOAST_VENDOR_PREFIX_DIRECTORY ) ) {
17
        require_once WPSEO_PATH . YOAST_VENDOR_PREFIX_DIRECTORY . '/guzzlehttp/guzzle/src/functions.php';
18
        require_once WPSEO_PATH . YOAST_VENDOR_PREFIX_DIRECTORY . '/guzzlehttp/psr7/src/functions_include.php';
19
        require_once WPSEO_PATH . YOAST_VENDOR_PREFIX_DIRECTORY . '/guzzlehttp/promises/src/functions_include.php';
20
}
21

22
/**
23
 * Retrieves the main instance.
24
 *
25
 * @phpcs:disable WordPress.NamingConventions -- Should probably be renamed, but leave for now.
26
 *
27
 * @return Main The main instance.
28
 */
29
function YoastSEO() {
30
        // phpcs:enable
31

UNCOV
32
        static $main;
×
33

UNCOV
34
        if ( $main === null ) {
×
35
                $main = new Main();
×
36
                $main->load();
×
37
        }
38

UNCOV
39
        return $main;
×
40
}
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