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/class-buddypress.php

    r13705 r13818  
    280280         */
    281281        public function __clone() {
    282                 _doing_it_wrong( __FUNCTION__, __( 'Cheatin’ huh?', 'buddypress' ), '1.7' );
     282                _doing_it_wrong( __FUNCTION__, esc_html__( 'Cheatin’ huh?', 'buddypress' ), '1.7' );
    283283        }
    284284
     
    289289         */
    290290        public function __wakeup() {
    291                 _doing_it_wrong( __FUNCTION__, __( 'Cheatin’ huh?', 'buddypress' ), '1.7' );
     291                _doing_it_wrong( __FUNCTION__, esc_html__( 'Cheatin’ huh?', 'buddypress' ), '1.7' );
    292292        }
    293293
     
    317317                $valid_key = $key;
    318318                if ( 'root_domain' === $key ) {
    319                         _doing_it_wrong( 'root_domain', __( 'The root_domain BuddyPress main class property is deprecated since 12.0.0, please use the root_url property instead.', 'buddypress' ), 'BuddyPress 12.0.0' );
     319                        _doing_it_wrong( 'root_domain', esc_html__( 'The root_domain BuddyPress main class property is deprecated since 12.0.0, please use the root_url property instead.', 'buddypress' ), 'BuddyPress 12.0.0' );
    320320                        $valid_key = 'root_url';
    321321                }
     
    335335                $valid_key = $key;
    336336                if ( 'root_domain' === $key ) {
    337                         _doing_it_wrong( 'root_domain', __( 'The root_domain BuddyPress main class property is deprecated since 12.0.0, please use the root_url property instead.', 'buddypress' ), 'BuddyPress 12.0.0' );
     337                        _doing_it_wrong( 'root_domain', esc_html__( 'The root_domain BuddyPress main class property is deprecated since 12.0.0, please use the root_url property instead.', 'buddypress' ), 'BuddyPress 12.0.0' );
    338338                        $valid_key = 'root_url';
    339339                }
Note: See TracChangeset for help on using the changeset viewer.