Skip to:
Content

BuddyPress.org

Ticket #8353: 8353.patch

File 8353.patch, 1.4 KB (added by Laxman Prajapati, 4 years ago)

Created patch.

  • src/bp-activity/bp-activity-embeds.php

    diff --git a/src/bp-activity/bp-activity-embeds.php b/src/bp-activity/bp-activity-embeds.php
    index 30181cc80..0c9f53263 100644
    a b EOD; 
    267267                        $float_width = 350;
    268268
    269269                        // Set up thumb.
    270                         $content = sprintf( '<div class="thumb" style="max-width:%1$spx">%2$s<a href="%3$s" rel="nofollow" onclick="top.location.href=\'%3$s\'"><img src="%4$s" /></a></div>', $thumb_width, $play_icon, esc_url( $url ), esc_url( $thumbnail ) );
     270                        $content = sprintf( '<div class="thumb" style="max-width:%1$spx">%2$s<a href="%3$s" rel="nofollow" onclick="top.location.href=\'%3$s\'"><img src="%4$s" alt="" /></a></div>', $thumb_width, $play_icon, esc_url( $url ), esc_url( $thumbnail ) );
    271271
    272272                        // Show title.
    273273                        if ( isset( $oembed->title ) ) {
  • src/bp-activity/js/mentions.js

    diff --git a/src/bp-activity/js/mentions.js b/src/bp-activity/js/mentions.js
    index 1c1126ae6..17407faaf 100644
    a b window.bp = window.bp || {}; 
    232232
    233233                        at:         '@',
    234234                        searchKey:  'search',
    235                         displayTpl: '<li data-value="@${ID}"><img src="${image}" /><span class="username">@${ID}</span><small>${name}</small></li>'
     235                        displayTpl: '<li data-value="@${ID}"><img src="${image}" alt="" /><span class="username">@${ID}</span><small>${name}</small></li>'
    236236                },
    237237
    238238                opts = $.extend( true, {}, suggestionsDefaults, mentionsDefaults, options );