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

Yoast / wordpress-seo / dd6e866a9e6d253114633104d9e3858d807178ba

19 Jun 2024 10:03AM UTC coverage: 48.628% (-4.3%) from 52.936%
dd6e866a9e6d253114633104d9e3858d807178ba

push

github

web-flow
Merge pull request #21431 from Yoast/21429-update-copy-in-the-introduction-and-consent-modals

Updates the copy for the introduction and consent modals

7441 of 13454 branches covered (55.31%)

Branch coverage included in aggregate %.

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

3718 existing lines in 107 files now uncovered.

25100 of 53464 relevant lines covered (46.95%)

62392.47 hits per line

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

0.0
/admin/import/plugins/class-import-seo-framework.php
1
<?php
2
/**
3
 * File with the class to handle data from SEO Framework.
4
 *
5
 * @package WPSEO\Admin\Import\Plugins
6
 */
7

8
/**
9
 * Class with functionality to import & clean SEO Framework post metadata.
10
 */
11
class WPSEO_Import_SEO_Framework extends WPSEO_Plugin_Importer {
12

13
        /**
14
         * The plugin name.
15
         *
16
         * @var string
17
         */
18
        protected $plugin_name = 'The SEO Framework';
19

20
        /**
21
         * Meta key, used in SQL LIKE clause for delete query.
22
         *
23
         * @var string
24
         */
25
        protected $meta_key = '_genesis_%';
26

27
        /**
28
         * Array of meta keys to detect and import.
29
         *
30
         * @var array
31
         */
32
        protected $clone_keys = [
33
                [
34
                        'old_key' => '_genesis_description',
35
                        'new_key' => 'metadesc',
36
                ],
37
                [
38
                        'old_key' => '_genesis_title',
39
                        'new_key' => 'title',
40
                ],
41
                [
42
                        'old_key' => '_genesis_noindex',
43
                        'new_key' => 'meta-robots-noindex',
44
                ],
45
                [
46
                        'old_key' => '_genesis_nofollow',
47
                        'new_key' => 'meta-robots-nofollow',
48
                ],
49
                [
50
                        'old_key' => '_genesis_canonical_uri',
51
                        'new_key' => 'canonical',
52
                ],
53
                [
54
                        'old_key' => '_open_graph_title',
55
                        'new_key' => 'opengraph-title',
56
                ],
57
                [
58
                        'old_key' => '_open_graph_description',
59
                        'new_key' => 'opengraph-description',
60
                ],
61
                [
62
                        'old_key' => '_social_image_url',
63
                        'new_key' => 'opengraph-image',
64
                ],
65
                [
66
                        'old_key' => '_twitter_title',
67
                        'new_key' => 'twitter-title',
68
                ],
69
                [
70
                        'old_key' => '_twitter_description',
71
                        'new_key' => 'twitter-description',
72
                ],
73
        ];
74

75
        /**
76
         * Removes all the metadata set by the SEO Framework plugin.
77
         *
78
         * @return bool
79
         */
UNCOV
80
        protected function cleanup() {
×
UNCOV
81
                $set1 = parent::cleanup();
×
82

UNCOV
83
                $this->meta_key = '_social_image_%';
×
UNCOV
84
                $set2           = parent::cleanup();
×
85

UNCOV
86
                $this->meta_key = '_twitter_%';
×
UNCOV
87
                $set3           = parent::cleanup();
×
88

UNCOV
89
                $this->meta_key = '_open_graph_%';
×
UNCOV
90
                $set4           = parent::cleanup();
×
91

UNCOV
92
                return ( $set1 || $set2 || $set3 || $set4 );
×
93
        }
94
}
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

© 2025 Coveralls, Inc