WordPress.org

Making WordPress.org

Changeset 501


Ignore:
Timestamp:
04/05/2014 02:24:42 AM (5 years ago)
Author:
iandunn
Message:

Post Types: Correct track name in data attribute.

r500 mistakenly placed the session name in the data-track-title attribute, instead of the track name.

File:
1 edited

Legend:

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

    r500 r501  
    516516                $session_title = apply_filters( 'the_title', $session->post_title );
    517517                $session_tracks = get_the_terms( $session->ID, 'wcb_track' );
     518                $session_track_titles = implode( ', ', wp_list_pluck( $session_tracks, 'name' ) );
    518519                $session_type = get_post_meta( $session->ID, '_wcpt_session_type', true );
    519520
     
    589590                }
    590591
    591                 $columns_html .= sprintf( '<td colspan="%d" class="%s" data-track-title="%s">%s</td>', $colspan, esc_attr( implode( ' ', $classes ) ), $session_title, $content );
     592                $columns_html .= sprintf( '<td colspan="%d" class="%s" data-track-title="%s">%s</td>', $colspan, esc_attr( implode( ' ', $classes ) ), $session_track_titles, $content );
    592593            }
    593594
Note: See TracChangeset for help on using the changeset viewer.