[wp-trac] [WordPress Trac] #52842: No way to adjust attributes in wp_resource_hints()
WordPress Trac
noreply at wordpress.org
Tue Apr 27 01:09:37 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 peterwilsoncc):
It was a while ago so this is stretching the memory, I think the theory
was to limit attributes to those defined in the spec.
If the URL is passed as an array that includes the other attributes, then
you should be able to add them
https://core.trac.wordpress.org/browser/tags/5.7.1/src/wp-includes
/general-template.php?marks=3300-3306#L3300
Are you wishing to include other attributes in the `link` tag or having
trouble setting those that are defined as permitted?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/52842#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list