[wp-trac] [WordPress Trac] #52842: No way to adjust attributes in wp_resource_hints()

WordPress Trac noreply at wordpress.org
Mon Apr 26 20:13:33 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:
-------------------------------------------+------------------------------
Changes (by desrosj):

 * keywords:  needs-patch => needs-patch reporter-feedback


Comment:

 @vanyukov Could you expand on your use case or what exactly you are seeing
 vs. what you are expecting?

 Are you saying that URLs with the allowed attributes are not being
 displayed with these attributes? There are
 [https://core.trac.wordpress.org/browser/branches/5.7/tests/phpunit/tests/general/wpResourceHints.php#L270
 some tests that assert] the `pr`, `rel`, `as` and `href` attributes are
 shown correctly, bot none for `type` or `crossorigin`.

 I believe that it was an intentional decision to not allow this list to be
 modified. @swissspidy, @peterwilsoncc, or @ocean90 may be able to confirm.

 Some history is found in #38121, #34292.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/52842#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list