Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
04/25/2024 05:14:05 PM (2 years ago)
Author:
imath
Message:

xProfile component: improve PHP code standards using WPCS

See #7228 (trunk)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-xprofile/classes/class-bp-xprofile-field-type-radiobutton.php

    r13392 r13806  
    8989
    9090                $js_clear = sprintf( 'javascript:%1$s( \'%2$s\' );', $clear, esc_js( bp_get_the_profile_field_input_name() ) );
     91
     92                // phpcs:disable WordPress.Security.EscapeOutput
    9193            ?>
    9294
     
    9597                </a>
    9698
    97             <?php endif; ?>
    98 
    99         <?php
     99            <?php endif;
     100            // phpcs:enable
    100101    }
    101102
     
    162163        }
    163164
    164         printf( '<div id="%1$s" class="input-options radio-button-options">%2$s</div>',
     165        printf(
     166            '<div id="%1$s" class="input-options radio-button-options">%2$s</div>',
    165167            esc_attr( 'field_' . $this->field_obj->id ),
     168            // phpcs:ignore WordPress.Security.EscapeOutput
    166169            $html
    167170        );
Note: See TracChangeset for help on using the changeset viewer.