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

Yoast / wordpress-seo / 6987097851

25 Nov 2023 04:49AM UTC coverage: 49.206% (-0.1%) from 49.302%
6987097851

push

github

web-flow
Merge pull request #20878 from Yoast/JRF/ghactions-minor-tweak

GH Actions: update a few links in inline comments

15305 of 31104 relevant lines covered (49.21%)

4.03 hits per line

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

0.0
/src/integrations/admin/disable-concatenate-scripts-integration.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\Integrations\Integration_Interface;
7

8
/**
9
 * Disable_Concatenate_Scripts_Integration class.
10
 */
11
class Disable_Concatenate_Scripts_Integration implements Integration_Interface {
12

13
        /**
14
         * Returns the conditionals based in which this loadable should be active.
15
         *
16
         * In this case: when on an admin page.
17
         *
18
         * @return array The conditionals.
19
         */
20
        public static function get_conditionals() {
×
21
                return [ Admin_Conditional::class ];
×
22
        }
23

24
        /**
25
         * Registers an action to disable script concatenation.
26
         */
27
        public function register_hooks() {
×
28
                \add_action( 'wp_print_scripts', [ $this, 'disable_concatenate_scripts' ] );
×
29
        }
30

31
        /**
32
         * Due to bugs in the 5.5 core release concatenate scripts is causing errors.
33
         *
34
         * Because of this we disable it.
35
         *
36
         * @return void
37
         */
38
        public function disable_concatenate_scripts() {
×
39
                global $concatenate_scripts;
×
40

41
                $concatenate_scripts = false;
×
42
        }
43
}
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