Skip to:
Content

BuddyPress.org

Ticket #7136: 7136.patch

File 7136.patch, 983 bytes (added by imath, 8 years ago)
  • src/bp-templates/bp-legacy/buddypress/groups/single/cover-image-header.php

    diff --git src/bp-templates/bp-legacy/buddypress/groups/single/cover-image-header.php src/bp-templates/bp-legacy/buddypress/groups/single/cover-image-header.php
    index f371873..8c90356 100644
     
    1414do_action( 'bp_before_group_header' ); ?>
    1515
    1616<div id="cover-image-container">
    17         <a id="header-cover-image" href="<?php bp_group_permalink(); ?>"></a>
     17        <a id="header-cover-image" href="<?php echo esc_url( bp_get_group_permalink() ); ?>"></a>
    1818
    1919        <div id="item-header-cover-image">
    2020                <?php if ( ! bp_disable_group_avatar_uploads() ) : ?>
    2121                        <div id="item-header-avatar">
    22                                 <a href="<?php bp_group_permalink(); ?>" title="<?php bp_group_name(); ?>">
     22                                <a href="<?php echo esc_url( bp_get_group_permalink() ); ?>" title="<?php echo esc_attr( bp_get_group_name() ); ?>">
    2323
    2424                                        <?php bp_group_avatar(); ?>
    2525