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

Yoast / wordpress-seo / b0a18fb1e1db07a099b536084e6d4fe2fdb24aaa

10 Oct 2025 12:23PM UTC coverage: 53.356% (+0.1%) from 53.233%
b0a18fb1e1db07a099b536084e6d4fe2fdb24aaa

push

github

FAMarfuaty
Merge branch 'trunk' of github.com:Yoast/wordpress-seo into feature/off-the-bat-analysis

8480 of 15636 branches covered (54.23%)

Branch coverage included in aggregate %.

18 of 58 new or added lines in 9 files covered. (31.03%)

2 existing lines in 2 files now uncovered.

31979 of 60192 relevant lines covered (53.13%)

39465.18 hits per line

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

0.0
/src/integrations/admin/menu-badge-integration.php
1
<?php
2

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

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

9
/**
10
 * Menu_Badge_Integration class.
11
 */
12
class Menu_Badge_Integration implements Integration_Interface {
13

14
        /**
15
         * {@inheritDoc}
16
         */
17
        public static function get_conditionals() {
×
18
                return [ Admin_Conditional::class ];
×
19
        }
20

21
        /**
22
         * {@inheritDoc}
23
         */
24
        public function register_hooks() {
×
25
                \add_action( 'admin_enqueue_scripts', [ $this, 'add_inline_styles' ] );
×
26
        }
27

28
        /**
29
         * Renders the migration error.
30
         *
31
         * @return void
32
         */
33
        public function add_inline_styles() {
×
34
                $custom_css = 'ul.wp-submenu span.yoast-premium-badge::after, #wpadminbar span.yoast-premium-badge::after { content:"'
×
NEW
35
                        . \__( 'Premium', 'wordpress-seo' ) . '"}' . \PHP_EOL;
×
36

NEW
37
                $custom_css .= 'ul.wp-submenu span.yoast-ai-plus-badge::after, #wpadminbar span.yoast-ai-plus-badge::after  { content:"AI+"; }' . \PHP_EOL;
×
UNCOV
38
                \wp_add_inline_style( WPSEO_Admin_Asset_Manager::PREFIX . 'admin-global', $custom_css );
×
39
        }
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