WP_Styles::get_dependency_warning_messageprotectedWP 6.9.1

Gets a style-specific dependency warning message.

Method of the class: WP_Styles{}

No Hooks.

Returns

String. Formatted, localized warning message.

Usage

// protected - for code of main (parent) or child class
$result = $this->get_dependency_warning_message( $handle, $missing_dependency_handles );
$handle(string) (required)
Style handle with missing dependencies.
$missing_dependency_handles(string[]) (required)
Missing dependency handles.

Changelog

Since 6.9.1 Introduced.

WP_Styles::get_dependency_warning_message() code WP 6.9.1

protected function get_dependency_warning_message( $handle, $missing_dependency_handles ) {
	return sprintf(
		/* translators: 1: Style handle, 2: List of missing dependency handles. */
		__( 'The style with the handle "%1$s" was enqueued with dependencies that are not registered: %2$s.' ),
		$handle,
		implode( wp_get_list_item_separator(), $missing_dependency_handles )
	);
}