WordPress.org

Making WordPress.org

Changeset 5853


Ignore:
Timestamp:
08/31/2017 07:43:54 PM (2 years ago)
Author:
coreymckrill
Message:

WordCamp Sponsors: Add alt attribute to logo images in shortcode output

Props Kau-Boy
Refs #1751

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wc-post-types/wc-post-types.php

    r5787 r5853  
    11641164                        <?php if ( 'website' == $attr['link'] && $website ) : ?>
    11651165                            <a href="<?php echo esc_attr( esc_url( $website ) ); ?>">
    1166                                 <?php the_post_thumbnail( 'wcb-sponsor-logo-horizontal-2x' ); ?>
     1166                                <?php the_post_thumbnail( 'wcb-sponsor-logo-horizontal-2x', array( 'alt' => get_the_title() ) ); ?>
    11671167                            </a>
    11681168                        <?php else : ?>
    1169                             <?php the_post_thumbnail( 'wcb-sponsor-logo-horizontal-2x' ); ?>
     1169                            <?php the_post_thumbnail( 'wcb-sponsor-logo-horizontal-2x', array( 'alt' => get_the_title() ) ); ?>
    11701170                        <?php endif; ?>
    11711171
Note: See TracChangeset for help on using the changeset viewer.