[wp-trac] [WordPress Trac] #57863: HTML API: Document the shorthand usage of the next_tag() function
WordPress Trac
noreply at wordpress.org
Fri Mar 3 16:35:20 UTC 2023
#57863: HTML API: Document the shorthand usage of the next_tag() function
--------------------------+--------------------
Reporter: zieladam | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 6.2
Component: General | Version:
Severity: normal | Keywords:
Focuses: |
--------------------------+--------------------
In `WP_HTML_Tag_Processor`, the next_tag() method may be used with a
query:
$this->next_tag( array( 'tag_name' => 'img' ) )
But it may also be used with just a tag name:
$this->next_tag( 'img' )
Both forms are valid, but only the former one is covered in the
docstrings.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/57863>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list