public function is_affected_component( $component, $component_type, $component_context ) {
		if ( empty( $component ) ) {
			return false;
		}
		return ( $component->type === $component_type && $component->context === $component_context );
	}
public function is_affected_component( $component, $component_type, $component_context ) {
		if ( empty( $component ) ) {
			return false;
		}
		return ( $component->type === $component_type && $component->context === $component_context );
	}
public function is_affected_component ( $ component , $ component_type , $ component_context ) { if ( empty ( $ component ) ) { return false ; } return ( $ component -> type === $ component_type && $ component -> context === $ component_context ) ; }
Checks if the component is of the given type and has the given context. This is
used to scope an error to a plugin or theme.

@param object $component         The component.
@param string $component_type    The component type for comparison.
@param string $component_context The component context for comparison.
@return bool
Checks if the component is of the given type and has the given context . This is used to scope an error to a plugin or theme .