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
WP_HTML_Tag_Processor
class
#1362
Heads up @WordPress/docs-issues-coordinators, we have a new issue open. Time to use 'em labels. |
@crstauf Thank you for the report. |
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
fyi |
Issue Description
Reported by @gaambo via User Contributed Notes.
URL of the Page with the Issue
https://developer.wordpress.org/reference/classes/wp_html_tag_processor/#modifying-html-attributes-for-a-found-tag
Section of Page with the issue
Usage > Modifying HTML attributes for a found tag
Why is this a problem?
Misrepresents how to use a method's class.
Suggested Fix
Change
class
toclass_name
.The text was updated successfully, but these errors were encountered: