[wp-trac] [WordPress Trac] #52842: No way to adjust attributes in wp_resource_hints()
WordPress Trac
noreply at wordpress.org
Wed Apr 28 22:33:32 UTC 2021
#52842: No way to adjust attributes in wp_resource_hints()
-------------------------------------------+------------------------------
Reporter: vanyukov | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: minor | Resolution:
Keywords: needs-patch reporter-feedback | Focuses:
-------------------------------------------+------------------------------
Comment (by vanyukov):
@desrosj,
This can be closed. I was wrong. Sorry.
I assumed that `$urls = apply_filters( 'wp_resource_hints', $urls,
$relation_type );` accepted only a list of URLs, as per the parameter
description `@param array $urls URLs to print for resource
hints.`.
Maybe adjust the param description, to show that it accepts not only the
links, but also the attributes?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/52842#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list