Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
04/27/2024 06:05:30 PM (2 years ago)
Author:
imath
Message:

Activity component: improve PHP code standards using WPCS

See #7228 (branch 12.0)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/12.0/src/bp-activity/classes/class-bp-activity-oembed-extension.php

    r13517 r13817  
    157157     *
    158158     * @since 2.6.0
    159      * 
     159     *
    160160     * @global BP_Activity_Template $activities_template The Activity template loop.
    161161     *
     
    321321                <?php
    322322                printf(
    323                     _n(
    324                         /* translators: accessibility text */
    325                         '%s <span class="screen-reader-text">Comment</span>',
    326                         /* translators: accessibility text */
    327                         '%s <span class="screen-reader-text">Comments</span>',
    328                         $count,
    329                         'buddypress'
     323                    wp_kses(
     324                        _n(
     325                            /* translators: accessibility text */
     326                            '%s <span class="screen-reader-text">Comment</span>',
     327                            /* translators: accessibility text */
     328                            '%s <span class="screen-reader-text">Comments</span>',
     329                            intval( $count ),
     330                            'buddypress'
     331                        ),
     332                        array(
     333                            'span' => array(
     334                                'class' => true,
     335                            ),
     336                        )
    330337                    ),
    331                     number_format_i18n( $count )
     338                    esc_html( number_format_i18n( $count ) )
    332339                );
    333340                ?>
Note: See TracChangeset for help on using the changeset viewer.