From a67b37192f9761dd40dd1095140526db1c7e7fdb Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sun, 20 Oct 2024 13:13:15 +0000 Subject: [PATCH] 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 --- wp-includes/fonts/class-wp-font-face.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/fonts/class-wp-font-face.php b/wp-includes/fonts/class-wp-font-face.php index 50d0268a70..07cd3d6de9 100644 --- a/wp-includes/fonts/class-wp-font-face.php +++ b/wp-includes/fonts/class-wp-font-face.php @@ -229,7 +229,7 @@ class WP_Font_Face { private function get_style_element() { $attributes = $this->generate_style_element_attributes(); - return "\n"; + return "\n"; } /** diff --git a/wp-includes/version.php b/wp-includes/version.php index 0c2d3e52bb..f12770c8a4 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -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.