mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-13 06:07:23 +01:00
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. Merges [57116] to the 6.4 branch. Props dmsnell, gaambo, crstauf, atachibana, audrasjb, krupalpanchal. Fixes #59891. Built from https://develop.svn.wordpress.org/branches/6.4@57117 git-svn-id: http://core.svn.wordpress.org/branches/6.4@56628 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
80315b33c4
commit
0b5a6e633f
@ -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' );
|
||||
* }
|
||||
|
@ -16,7 +16,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '6.4.2-alpha-57113';
|
||||
$wp_version = '6.4.2-alpha-57117';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user