Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
04/28/2024 10:08:00 PM (5 months ago)
Author:
imath
Message:

BP Nouveau: improve PHP code standards using WPCS

See #7228 (trunk)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-nouveau/includes/members/template-tags.php

    r13652 r13820  
    479479 */
    480480function bp_nouveau_member_meta() {
     481    // Escaping is made in `bp_nouveau_get_member_meta()`.
     482    // phpcs:ignore WordPress.Security.EscapeOutput
    481483    echo join( "\n", bp_nouveau_get_member_meta() );
    482484}
     
    515517            } else {
    516518                $meta = array(
    517                     'last_activity' => sprintf( '%s', bp_get_member_last_active() ),
     519                    'last_activity' => sprintf( '%s', esc_html( bp_get_member_last_active() ) ),
    518520                );
    519521            }
     
    746748 */
    747749function bp_nouveau_member_description_edit_link() {
     750    // Escaping is made in `bp_nouveau_member_get_description_edit_link()`.
     751    // phpcs:ignore WordPress.Security.EscapeOutput
    748752    echo bp_nouveau_member_get_description_edit_link();
    749753}
Note: See TracChangeset for help on using the changeset viewer.