Skip to content

Commit

Permalink
fix: Remove an a that shouldn't have been in the price names.
Browse files Browse the repository at this point in the history
  • Loading branch information
itssimple committed Apr 21, 2021
1 parent ab700c5 commit 45f3ec7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion PLUGIN-CHECKSUM
Original file line number Diff line number Diff line change
@@ -1 +1 @@
a82aadb8a5968fc3769dd440fcaa0bad
05ddf13492fddd5d4c94fdeb603e6cdd
2 changes: 1 addition & 1 deletion includes/edu-shortcodes.php
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ function eduadmin_get_detailinfo( $attributes ) {
$ret_str .= '<div class="pricename"><span class="pricename-price">' . esc_html( edu_get_price( current( $prices )['Price'], $selected_course['ParticipantVat'] ) ) . "</span></div>\n";
} else {
foreach ( $prices as $price ) {
$ret_str .= wp_kses_post( sprintf( '<div class="pricename"><span class="pricename-description">%1$s</span>a <span class="pricename-price">%2$s</span></div>', $price['PriceNameDescription'], edu_get_price( $price['Price'], $selected_course['ParticipantVat'] ) ) ) . "\n";
$ret_str .= wp_kses_post( sprintf( '<div class="pricename"><span class="pricename-description">%1$s</span> <span class="pricename-price">%2$s</span></div>', $price['PriceNameDescription'], edu_get_price( $price['Price'], $selected_course['ParticipantVat'] ) ) ) . "\n";
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion includes/edu-text-functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -854,7 +854,7 @@ function get_logical_date_groups( $dates, $short = false, $event = null, $show_d
function edu_get_date_range( $days, $short, $event, $show_days, $always_show_schedule = false, $never_group = false ) {
usort( $days, "DateComparer" );

if ( 1 === count( $days ) ) {
if ( 1 === count( $days ) && ! $always_show_schedule ) {
return array( get_start_end_display_date( $days[0], $days[0], $short, $event, $show_days ) );
}

Expand Down

0 comments on commit 45f3ec7

Please sign in to comment.