Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
04/28/2024 12:23:47 PM (3 years ago)
Author:
imath
Message:

Core: improve PHP code standards using WPCS

See #7228 (trunk)

File:
1 edited

Legend:

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

    r13372 r13818  
    332332                                _doing_it_wrong(
    333333                                        __CLASS__,
    334                                         __( 'The `href` attribute is not available inside the `<button>` tag. Please use a `data-*` attribute to transport a link into this tag.', 'buddypress' ),
     334                                        esc_html__( 'The `href` attribute is not available inside the `<button>` tag. Please use a `data-*` attribute to transport a link into this tag.', 'buddypress' ),
    335335                                        '9.0.0'
    336336                                );
    … …  
    444444         */
    445445        public function display() {
    446                 if ( !empty( $this->contents ) )
     446                if ( ! empty( $this->contents ) ) {
     447                        // phpcs:ignore WordPress.Security.EscapeOutput
    447448                        echo $this->contents;
     449                }
    448450        }
    449451}
Note: See TracChangeset for help on using the changeset viewer.