Automattic\WooCommerce\Internal\Admin\Settings

SettingsUIRequestContext::record_script_handles_failure │ private │ WC 1.0

Cache and report a script handle failure.

Метод класса: SettingsUIRequestContext{}

Хуков нет.

Возвращает

null. Ничего (null).

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

// private - только в коде основоного (родительского) класса
$result = $this->record_script_handles_failure( $e, $caller ): void;
$e(Throwable) (обязательный)
Resolution failure.
$caller(строка) (обязательный)
Calling method, for exception tracking.

Код SettingsUIRequestContext::record_script_handles_failure() WC 11.2.2

private function record_script_handles_failure( \Throwable $e, string $caller ): void {
	$this->script_handles_failed = true;

	self::log_resolution_failure( 'Settings UI script handles', $this->settings_page->get_id(), $this->section, $e, $caller );

	$this->script_handles_failure_reason = sprintf(
		/* translators: %s: failure reason. */
		__( 'Settings UI script handles could not be resolved: %s', 'woocommerce' ),
		self::sanitize_failure_reason( $e )
	);
}