Skip to:
Content

BuddyPress.org

Ticket #8531: 8531.patch

File 8531.patch, 1.2 KB (added by imath, 5 years ago)
  • src/bp-groups/bp-groups-blocks.php

    diff --git src/bp-groups/bp-groups-blocks.php src/bp-groups/bp-groups-blocks.php
    index 8eed69b46..2476797e8 100644
    function bp_groups_render_group_block( $attributes = array() ) { 
    9393                        esc_url( $group_link ),
    9494                        esc_url( $avatar ),
    9595                        /* Translators: %s is the group's name. */
    96                         sprintf( esc_html__( 'Group Profile photo of %s', 'buddypress' ), $group_name )
     96                        sprintf( esc_attr__( 'Group Profile photo of %s', 'buddypress' ), esc_html( $group_name ) )
    9797                );
    9898        }
    9999
    function bp_groups_render_groups_block( $attributes = array() ) { 
    245245                                        </a>
    246246                                </div>',
    247247                                esc_url( $group_link ),
    248                                 /* Translators: %s is the group's name. */
    249                                 sprintf( esc_attr__( 'Group Profile photo of %s', 'buddypress' ), esc_html( $group->name ) ),
    250248                                esc_url(
    251249                                        bp_core_fetch_avatar(
    252250                                                array(
    function bp_groups_render_groups_block( $attributes = array() ) { 
    256254                                                        'html'    => false,
    257255                                                )
    258256                                        )
    259                                 )
     257                                ),
     258                                /* Translators: %s is the group's name. */
     259                                sprintf( esc_attr__( 'Group Profile photo of %s', 'buddypress' ), esc_html( $group->name ) ),
    260260                        );
    261261                }
    262262