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

WordPress Trac noreply at wordpress.org
Mon May 31 20:57:04 UTC 2021


#52842: No way to adjust attributes in wp_resource_hints()
---------------------------+-----------------------------
 Reporter:  vanyukov       |       Owner:  SergeyBiryukov
     Type:  defect (bug)   |      Status:  closed
 Priority:  normal         |   Milestone:  5.8
Component:  Script Loader  |     Version:
 Severity:  minor          |  Resolution:  fixed
 Keywords:  has-patch      |     Focuses:  docs
---------------------------+-----------------------------

Comment (by SergeyBiryukov):

 Thanks for the PR!

 For reference, just noting that even though `rel` is in the
 [source:tags/5.7.2/src/wp-includes/general-template.php?marks=3345#L3343
 list of allowed attributes], it was not included in [51048], since it
 always [source:tags/5.7.2/src/wp-includes/general-
 template.php?marks=3334#L3332 has the value of $relation_type], based on
 the [source:tags/5.7.2/src/wp-includes/general-
 template.php?marks=3271-3274#L3269 list of predefined values], and cannot
 really be changed via the filter.

 For that reason, it was also not mentioned in the
 [https://make.wordpress.org/core/2016/11/03/attributes-for-resource-hints-
 in-4-7/ Attributes for Resource Hints in 4.7] dev note.

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


More information about the wp-trac mailing list