Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
04/28/2024 12:23:47 PM (2 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-admin-types.php

    r13771 r13818  
    372372                _doing_it_wrong(
    373373                    __METHOD__,
    374                     __( 'Type metadata labels need to be set into the labels argument when registering your taxonomy using the meta key as the label’s key.', 'buddypress' )
     374                    esc_html__( 'Type metadata labels need to be set into the labels argument when registering your taxonomy using the meta key as the label’s key.', 'buddypress' )
    375375                    . ' ' .
    376376                    sprintf(
    377377                        /* translators: %s is the name of the Type meta key */
    378                         __( 'As a result, the form elements for the "%s" meta key cannot be displayed', 'buddypress' ), $meta_key ),
     378                        esc_html__( 'As a result, the form elements for the "%s" meta key cannot be displayed', 'buddypress' ), esc_html( $meta_key ) ),
    379379                    '7.0.0'
    380380                );
     
    439439                        esc_attr( $meta_key ),
    440440                        esc_html( $labels->{ $meta_key } ),
     441                        // phpcs:ignore WordPress.Security.EscapeOutput
    441442                        $checked,
    442443                        esc_html__( 'Yes', 'buddypress' ),
Note: See TracChangeset for help on using the changeset viewer.