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

Yoast / wordpress-seo / 085bb9905a29a1c9f4a86e2241bf4c61c9424712

07 Oct 2025 08:20AM UTC coverage: 52.671% (-0.007%) from 52.678%
085bb9905a29a1c9f4a86e2241bf4c61c9424712

Pull #22624

github

web-flow
Merge 328af0f2c into b095d7ef1
Pull Request #22624: Fix/copy for default seo data alerts

8088 of 15191 branches covered (53.24%)

Branch coverage included in aggregate %.

0 of 2 new or added lines in 1 file covered. (0.0%)

119 existing lines in 3 files now uncovered.

31269 of 59532 relevant lines covered (52.52%)

40113.51 hits per line

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

0.0
/src/integrations/admin/redirections-tools-page.php
1
<?php
2

3
namespace Yoast\WP\SEO\Integrations\Admin;
4

5
use Yoast\WP\SEO\Conditionals\Admin_Conditional;
6
use Yoast\WP\SEO\Helpers\Redirect_Helper;
7
use Yoast\WP\SEO\Integrations\Integration_Interface;
8

9
/**
10
 * Redirections_Tools_Page class
11
 */
12
class Redirections_Tools_Page implements Integration_Interface {
13

14
        /**
15
         * The redirect helper.
16
         *
17
         * @var Redirect_Helper
18
         */
19
        private $redirect_helper;
20

21
        /**
22
         * Returns the conditionals based in which this loadable should be active.
23
         *
24
         * @return array<string>
25
         */
26
        public static function get_conditionals() {
×
27
                return [
×
28
                        Admin_Conditional::class,
×
29
                ];
×
30
        }
31

32
        /**
33
         * Constructor.
34
         *
35
         * @param Redirect_Helper $redirect_helper The redirect helper.
36
         */
37
        public function __construct(
×
38
                Redirect_Helper $redirect_helper
39
        ) {
40
                $this->redirect_helper = $redirect_helper;
×
41
        }
42

43
        /**
44
         * Registers all hooks to WordPress.
45
         *
46
         * @return void
47
         */
48
        public function register_hooks() {
×
49
                \add_action( 'admin_menu', [ $this, 'register_admin_menu' ] );
×
50
        }
51

52
        /**
53
         * Registers the admin menu.
54
         *
55
         * @return void
56
         */
57
        public function register_admin_menu() {
×
58
                $page_title = \sprintf(
×
59
                        /* translators: %s: expands to Yoast */
60
                        \esc_html__( '%s redirects', 'wordpress-seo' ),
×
61
                        'Yoast'
×
62
                );
×
63

64
                \add_management_page(
×
UNCOV
65
                        $page_title,
×
UNCOV
66
                        $page_title,
×
UNCOV
67
                        'edit_others_posts',
×
UNCOV
68
                        'wpseo_redirects_tools',
×
UNCOV
69
                        [ $this, 'show_redirects_page' ]
×
UNCOV
70
                );
×
71
        }
72

73
        /**
74
         * The redirects tools page render function, noop.
75
         *
76
         * @return void
77
         */
UNCOV
78
        public function show_redirects_page() {
×
79
                // Do nothing and let the redirect happen from the redirect integration.
UNCOV
80
        }
×
81
}
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