WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
класс не описан

Yoast\WP\SEO\Integrations\Admin

Disable_Concatenate_Scripts_Integration{} Yoast 1.0

Disable_Concatenate_Scripts_Integration class.

Хуков нет.

Возвращает

Null. Ничего.

Использование

$Disable_Concatenate_Scripts_Integration = new Disable_Concatenate_Scripts_Integration();
// use class methods

Методы

  1. disable_concatenate_scripts()
  2. get_conditionals()
  3. register_hooks()

Код Disable_Concatenate_Scripts_Integration{} Yoast 15.6.2

<?php
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;
	}
}