Making WordPress.org

Changeset 1561


Ignore:
Timestamp:
05/11/2015 07:48:01 PM (10 years ago)
Author:
iandunn
Message:

WordCamp Post Types: Trim extra commas from the back-compat sessions shortcode.

It was outputting "Presented by Jane Doe," because the input field in wp-admin automatically adds a comma.

File:
1 edited

Legend:

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

    r758 r1561  
    176176
    177177                        if ( ! empty( $speakers ) )
    178                             $meta['speakers'] = sprintf( __( 'Presented by %s', 'wordcamporg' ), esc_html( $speakers ) );
     178                            $meta['speakers'] = sprintf( __( 'Presented by %s', 'wordcamporg' ), esc_html( rtrim( $speakers, ',' ) ) );
    179179
    180180                        if ( ! empty( $track ) )
Note: See TracChangeset for help on using the changeset viewer.