Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
06/02/2024 07:12:25 PM (2 years ago)
Author:
espellcaste
Message:

WPCS: Part VIII: miscellaneous fixes for some of the files of the core component.

Follow-up to [13883], [13886], [13887], [13888], [13891], [13892], [13893]

See #9164 and #7228

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/classes/class-bp-core-html-element.php

    r13878 r13900  
    1414 */
    1515class BP_Core_HTML_Element {
     16
    1617        /**
    1718         * Open tag for an element.
     
    2324         * @var string
    2425         */
    25         public $open_tag   = '';
     26        public $open_tag = '';
    2627
    2728        /**
     
    4546         * @var string
    4647         */
    47         public $close_tag  = '';
     48        public $close_tag = '';
    4849
    4950        /**
     
    9192                        $this->open_tag = sprintf( '<%1$s %2$s />', $elem, $attributes );
    9293
    93                 // All other elements.
     94                        // All other elements.
    9495                } else {
    9596                        $this->open_tag   = sprintf( '<%1$s %2$s>', $elem, $attributes );
    9697                        $this->inner_html = ! empty( $r['inner_html'] ) ? $r['inner_html'] : '';
    97                         $this->close_tag  = sprintf( '</%1$s>', $elem );
     98                        $this->close_tag  = sprintf( '</%1$s>', $elem );
    9899                }
    99100        }
     
    104105         * @since 2.7.0
    105106         *
    106          * @param  string $prop Property name. Either 'open_tag', 'inner_html', 'close_tag'.
     107         * @param string $prop Property name. Either 'open_tag', 'inner_html', 'close_tag'.
    107108         * @return string
    108109         */
Note: See TracChangeset for help on using the changeset viewer.