Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTML API: Fix typo in documentation example. #5661

Closed

Conversation

dmsnell
Copy link
Member

@dmsnell dmsnell commented Nov 11, 2023

Trac ticket: Core-59891
Resolves: WordPress/Documentation-Issue-Tracker#1362

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: @gaambo, @crstauf, @atachibana

As a documentation change this should have no impact on any code and should need no testing.

Trac ticket: Core-59891
Resolves: WordPress/Documentation-Issue-Tracker#1362

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: @gaambo, @crstauf, @atachibana
@ockham
Copy link
Contributor

ockham commented Nov 17, 2023

Committed to Core in https://core.trac.wordpress.org/changeset/57116.

@ockham ockham closed this Nov 17, 2023
@ockham
Copy link
Contributor

ockham commented Nov 17, 2023

Backported to Core's 6.4 branch in https://core.trac.wordpress.org/changeset/57117.

@dmsnell dmsnell deleted the html-api/fix-documentation-typo branch November 17, 2023 07:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Incorrect example for WP_HTML_Tag_Processor class
4 participants