[wp-trac] [WordPress Trac] #52842: No way to adjust attributes in wp_resource_hints()
WordPress Trac
noreply at wordpress.org
Sat May 29 19:29:10 UTC 2021
#52842: No way to adjust attributes in wp_resource_hints()
--------------------------+---------------------
Reporter: vanyukov | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 5.8
Component: General | Version:
Severity: minor | Resolution:
Keywords: has-patch | Focuses: docs
--------------------------+---------------------
Comment (by Rahmohn):
Thanks for the feedback @vanyukov. I've updated the PR to:
{{{#!php
<?php
/**
* ...
* @param array $urls Resources to be hinted {
* String of URLs or array of resources and their attributes.
*
* @type string $as How the browser should treat the asset
(CSS, JavaScript, etc).
* @type string $crossorigin How the element handles crossorigin
requests.
* @type string $href URL to include in resource hints.
* @type float $pr Expected probability that the resource
will be used.
* @type string $rel Relationship between the resource and the
current document.
* @type string $type Type of the resource (text/html, text/css,
etc).
*
* }
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/52842#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list