From d3ea5c29c05dc5d7ca1e0d78daa3962b26a6904e Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Tue, 25 Jul 2023 13:14:26 +0000 Subject: [PATCH] Coding Standards: Always declare visibility for class methods. This adds a missing `public` keyword for `WP_HTML_Tag_Processor::get_attribute_names_with_prefix()`. Follow-up to [55203]. Props jrf. See #58831. git-svn-id: https://develop.svn.wordpress.org/trunk@56301 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/html-api/class-wp-html-tag-processor.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/html-api/class-wp-html-tag-processor.php b/src/wp-includes/html-api/class-wp-html-tag-processor.php index debc87321c..2e84b3d719 100644 --- a/src/wp-includes/html-api/class-wp-html-tag-processor.php +++ b/src/wp-includes/html-api/class-wp-html-tag-processor.php @@ -1743,7 +1743,7 @@ class WP_HTML_Tag_Processor { * @param string $prefix Prefix of requested attribute names. * @return array|null List of attribute names, or `null` when no tag opener is matched. */ - function get_attribute_names_with_prefix( $prefix ) { + public function get_attribute_names_with_prefix( $prefix ) { if ( $this->is_closing_tag || null === $this->tag_name_starts_at ) { return null; }