364 | | if ( isset( $track_number[1] ) ) { |
365 | | /* translators: Audio file track information. 1: Audio track number, 2: Total audio tracks. */ |
366 | | $content .= ' ' . sprintf( __( 'Track %1$s of %2$s.' ), number_format_i18n( $track_number[0] ), number_format_i18n( $track_number[1] ) ); |
367 | | } else { |
368 | | /* translators: Audio file track information. %s: Audio track number. */ |
369 | | $content .= ' ' . sprintf( __( 'Track %s.' ), number_format_i18n( $track_number[0] ) ); |
| 364 | if ( is_numeric( $track_number[0] ) ) { |
| 365 | if ( isset( $track_number[1] ) && is_numeric( $track_number[1] ) ) { |
| 366 | $content .= ' ' . sprintf( |
| 367 | /* translators: Audio file track information. 1: Audio track number, 2: Total audio tracks. */ |
| 368 | __( 'Track %1$s of %2$s.' ), |
| 369 | number_format_i18n( $track_number[0] ), |
| 370 | number_format_i18n( $track_number[1] ) |
| 371 | ); |
| 372 | } else { |
| 373 | $content .= ' ' . sprintf( |
| 374 | /* translators: Audio file track information. %s: Audio track number. */ |
| 375 | __( 'Track %s.' ), |
| 376 | number_format_i18n( $track_number[0] ) |
| 377 | ); |
| 378 | } |