[wp-trac] [WordPress Trac] #59891: Incorrect example for WP_HTML_Tag_Processor class

WordPress Trac noreply at wordpress.org
Fri Nov 17 06:45:13 UTC 2023


#59891: Incorrect example for WP_HTML_Tag_Processor class
-----------------------------------+------------------------------
 Reporter:  atachibana             |       Owner:  Bernhard Reiter
     Type:  defect (bug)           |      Status:  closed
 Priority:  normal                 |   Milestone:  6.4.2
Component:  HTML API               |     Version:  6.4
 Severity:  minor                  |  Resolution:  fixed
 Keywords:  has-patch fixed-major  |     Focuses:  docs
-----------------------------------+------------------------------
Changes (by Bernhard Reiter):

 * status:  reopened => closed
 * resolution:   => fixed


Comment:

 In [changeset:"57117" 57117]:
 {{{
 #!CommitTicketReference repository="" revision="57117"
 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.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/59891#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list