Making WordPress.org

Ticket #1751: 1751-sponsors-alt.diff

File 1751-sponsors-alt.diff, 1.0 KB (added by Kau-Boy, 6 years ago)
  • wordcamp.org/public_html/wp-content/plugins/wc-post-types/wc-post-types.php

    diff --git wordcamp.org/public_html/wp-content/plugins/wc-post-types/wc-post-types.php wordcamp.org/public_html/wp-content/plugins/wc-post-types/wc-post-types.php
    index bbdca08..e286633 100644
    class WordCamp_Post_Types_Plugin { 
    11371137                                        <div class="wcorg-sponsor-description">
    11381138                                                <?php if ( 'website' == $attr['link'] && $website ) : ?>
    11391139                                                        <a href="<?php echo esc_attr( esc_url( $website ) ); ?>">
    1140                                                                 <?php the_post_thumbnail( 'wcb-sponsor-logo-horizontal-2x' ); ?>
     1140                                                                <?php the_post_thumbnail( 'wcb-sponsor-logo-horizontal-2x', array( 'alt' => get_the_title() ) ); ?>
    11411141                                                        </a>
    11421142                                                <?php else : ?>
    1143                                                         <?php the_post_thumbnail( 'wcb-sponsor-logo-horizontal-2x' ); ?>
     1143                                                        <?php the_post_thumbnail( 'wcb-sponsor-logo-horizontal-2x', array( 'alt' => get_the_title() ) ); ?>
    11441144                                                <?php endif; ?>
    11451145
    11461146                                                <?php the_content(); ?>