From b5ac702f605013f068331470681e9060724292a9 Mon Sep 17 00:00:00 2001 From: Bernhard Reiter Date: Fri, 17 Nov 2023 06:40:24 +0000 Subject: [PATCH] HTML API: Fix typo in documentation example. The example code in the PHPDoc comment for the HTML Tag Processor class previously showed calling `next_tag()` with an array containing a `class` key, which should have been `class_name`. This patch fixes this by using the appropriate `class_name` key. Props dmsnell, gaambo, crstauf, atachibana, audrasjb, krupalpanchal. Fixes #59891. Built from https://develop.svn.wordpress.org/trunk@57116 git-svn-id: http://core.svn.wordpress.org/trunk@56627 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/html-api/class-wp-html-tag-processor.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/html-api/class-wp-html-tag-processor.php b/wp-includes/html-api/class-wp-html-tag-processor.php index 19cca778ea..ea74410230 100644 --- a/wp-includes/html-api/class-wp-html-tag-processor.php +++ b/wp-includes/html-api/class-wp-html-tag-processor.php @@ -116,7 +116,7 @@ * * Example: * - * if ( $tags->next_tag( array( 'class' => 'wp-group-block' ) ) ) { + * if ( $tags->next_tag( array( 'class_name' => 'wp-group-block' ) ) ) { * $tags->set_attribute( 'title', 'This groups the contained content.' ); * $tags->remove_attribute( 'data-test-id' ); * } diff --git a/wp-includes/version.php b/wp-includes/version.php index e6465f6f03..b7029f762b 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.5-alpha-57115'; +$wp_version = '6.5-alpha-57116'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.