Skip to content

Commit

Permalink
Forcing lowercase strings for values in enclosed content of subscript…
Browse files Browse the repository at this point in the history
…ion details shortcode.
  • Loading branch information
thenbrent committed Oct 27, 2011
1 parent 3658b4b commit 184ce39
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bbbolt-server.class.php
Expand Up @@ -1024,6 +1024,9 @@ function shortcode_subscription_details_handler( $attributes, $content = '' ) {
if( in_array( $detail, array( 'amount', 'initial_amount', 'trial_amount' ) ) ) // Prefix a currency symbol to currency items
$value = $this->paypal->get_currency_symbol() . $value;

if( is_string( $value ) )
$value = strtolower( $value );

$content = str_replace( '{$'.$detail.'}', $value, $content );
}

Expand Down

0 comments on commit 184ce39

Please sign in to comment.