mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00: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. Props dmsnell, gaambo, crstauf, atachibana, audrasjb, krupalpanchal. Fixes #59891. git-svn-id: https://develop.svn.wordpress.org/trunk@57116 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
3d06660c63
commit
f2df7d8b7c
@ -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…
Reference in New Issue
Block a user