mirror of
https://github.com/WordPress/WordPress.git
synced 2024-10-30 07:20:01 +01:00
Editor: Replace id
attribute with class
in WP_Font_Face::get_style_element()
.
`wp_print_font_faces()` prints an HTML tag that can be used more than once, so the document could end up having multiple tags with the same `id` attribute. The `id` global attribute defines an identifier (ID) which must be unique in the whole document. Reference: [https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/id MDN Web Docs: id]. Follow-up to [56500]. Props mmaattiiaass, peterwilsoncc. Fixes #62246. Built from https://develop.svn.wordpress.org/trunk@59259 git-svn-id: http://core.svn.wordpress.org/trunk@58651 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
05b4e2e094
commit
a67b37192f
@ -229,7 +229,7 @@ class WP_Font_Face {
|
||||
private function get_style_element() {
|
||||
$attributes = $this->generate_style_element_attributes();
|
||||
|
||||
return "<style id='wp-fonts-local'{$attributes}>\n%s\n</style>\n";
|
||||
return "<style class='wp-fonts-local'{$attributes}>\n%s\n</style>\n";
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -16,7 +16,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '6.7-beta3-59258';
|
||||
$wp_version = '6.7-beta3-59259';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user