mirror of
git://develop.git.wordpress.org/
synced 2025-04-05 12:42:35 +02: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. git-svn-id: https://develop.svn.wordpress.org/branches/6.4@57117 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
3aa1af628b
commit
4ac42561a7
@ -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' );
|
||||
* }
|
||||
|
Loading…
x
Reference in New Issue
Block a user