Remove curly quotes from auto content generation for audio tracks on upload. Texturize should be doing this on display.

props tollmanz.
fixes 24810.



git-svn-id: https://develop.svn.wordpress.org/trunk@24788 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2013-07-24 05:47:00 +00:00
parent d96ec623a0
commit abb0f1d882
1 changed files with 4 additions and 4 deletions

View File

@ -236,15 +236,15 @@ function media_handle_upload($file_id, $post_id, $post_data = array(), $override
if ( ! empty( $meta['album'] ) && ! empty( $meta['artist'] ) ) {
/* translators: 1: audio track title, 2: album title, 3: artist name */
$content .= sprintf( __( '“%1$s” from %2$s by %3$s.' ), $title, $meta['album'], $meta['artist'] );
$content .= sprintf( __( '"%1$s" from %2$s by %3$s.' ), $title, $meta['album'], $meta['artist'] );
} else if ( ! empty( $meta['album'] ) ) {
/* translators: 1: audio track title, 2: album title */
$content .= sprintf( __( '“%1$s” from %2$s.' ), $title, $meta['album'] );
$content .= sprintf( __( '"%1$s" from %2$s.' ), $title, $meta['album'] );
} else if ( ! empty( $meta['artist'] ) ) {
/* translators: 1: audio track title, 2: artist name */
$content .= sprintf( __( '“%1$s” by %2$s.' ), $title, $meta['artist'] );
$content .= sprintf( __( '"%1$s" by %2$s.' ), $title, $meta['artist'] );
} else {
$content .= sprintf( __( '“%s”.' ), $title );
$content .= sprintf( __( '"%s".' ), $title );
}
} else if ( ! empty( $meta['album'] ) ) {