Make WordPress Core

Ticket #58831: 58831-all-methods-should-have-visibility-declared.patch

File 58831-all-methods-should-have-visibility-declared.patch, 1.0 KB (added by jrf, 15 months ago)
  • src/wp-includes/html-api/class-wp-html-tag-processor.php

    From ee7ce0d16141f277c6a85240a3c6dcb2a0a95603 Mon Sep 17 00:00:00 2001
    From: jrfnl <jrfnl@users.noreply.github.com>
    Date: Wed, 29 Mar 2023 00:35:02 +0200
    Subject: [PATCH] CS: all methods should have visibility declared
    
    ---
     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 82a40d0ac9..df11b0313d 100644
    a b class WP_HTML_Tag_Processor { 
    17431743         * @param string $prefix Prefix of requested attribute names.
    17441744         * @return array|null List of attribute names, or `null` when no tag opener is matched.
    17451745         */
    1746         function get_attribute_names_with_prefix( $prefix ) {
     1746        public function get_attribute_names_with_prefix( $prefix ) {
    17471747                if ( $this->is_closing_tag || null === $this->tag_name_starts_at ) {
    17481748                        return null;
    17491749                }