Server IP : 172.67.158.161 / Your IP : 3.137.168.30 Web Server : LiteSpeed System : Linux business53.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : giankuin ( 1871) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/giankuin/thietke365.net/wp-content/plugins/wordpress-seo/src/integrations/admin/ |
Upload File : |
<?php namespace Yoast\WP\SEO\Integrations\Admin; use Yoast\WP\SEO\Conditionals\Admin_Conditional; use Yoast\WP\SEO\Integrations\Integration_Interface; /** * Disable_Concatenate_Scripts_Integration class. */ class Disable_Concatenate_Scripts_Integration implements Integration_Interface { /** * Returns the conditionals based in which this loadable should be active. * * In this case: when on an admin page. * * @return array The conditionals. */ public static function get_conditionals() { return [ Admin_Conditional::class ]; } /** * Registers an action to disable script concatenation. */ public function register_hooks() { \add_action( 'wp_print_scripts', [ $this, 'disable_concatenate_scripts' ] ); } /** * Due to bugs in the 5.5 core release concatenate scripts is causing errors. * * Because of this we disable it. * * @return void */ public function disable_concatenate_scripts() { global $concatenate_scripts; $concatenate_scripts = false; } }