Closed (fixed)
Project:
Drupal core
Version:
9.3.x-dev
Component:
aggregator.module
Priority:
Critical
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
30 Sep 2021 at 20:09 UTC
Updated:
16 Oct 2021 at 03:29 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
alexpottHere's the fix from the meta. The deprecation occurs due to template_preprocess_aggregator_item()
Comment #3
alexpottComment #4
alexpottComment #5
larowlanComment #6
catchAggregator's on its way out of core, but could we have an issue for the @todo to link to?
Comment #7
alexpottI investigated whether or not we could replace the
$variables['url'] = UrlHelper::stripDangerousProtocols($item->getLink());with$variables['url'] = $item->toUrl()->toSting();. That didn't work because a NULL link value triggers an exception in$item->toUrl(). I think the fix here is fine. Gonna remove the @todoComment #8
andypost++ no todo needed
Comment #9
andypostComment #10
larowlanI wonder if there's merit in a follow-up to make the link field required.
Committed c9ec5e4 and pushed to 9.3.x. Thanks!