Skip to:
Content

BuddyPress.org

Changeset 12711


Ignore:
Timestamp:
08/29/2020 10:00:06 AM (4 years ago)
Author:
imath
Message:

BP Activity: add missing alt attribute to img tags

This covers the Mentions autocomplete feature and the Activity Embed one.

Props laxman-prajapati

Fixes #8353

Location:
trunk/src/bp-activity
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-activity/bp-activity-embeds.php

    r12586 r12711  
    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.
  • trunk/src/bp-activity/js/mentions.js

    r12543 r12711  
    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
Note: See TracChangeset for help on using the changeset viewer.