Changeset 2298 for sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments-network/includes/payment-requests-list-table.php
- Timestamp:
- 01/15/2016 06:07:53 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments-network/includes/payment-requests-list-table.php
r2273 r2298 173 173 $amount = get_post_meta( $request->ID, '_camppayments_payment_amount', true ); 174 174 175 $amount = preg_replace( '#[^\d.-]+#', '', $amount ); 176 $amount = floatval( $amount ); 177 178 if ( strpos( $currency, 'null' ) === false && $amount ) { 179 $output = sprintf( '%s %s', esc_html( number_format( $amount, 2 ) ), esc_html( $currency ) ); 180 181 if ( $currency != 'USD' ) { 182 $usd_amount = Payment_Requests_Dashboard::convert_currency( $currency, 'usd', $amount ); 183 if ( $usd_amount ) 184 $output .= sprintf( '<br />~ %s USD', esc_html( number_format( $usd_amount, 2 ) ) ); 185 } 186 187 return $output; 188 } elseif ( $amount ) { 189 return esc_html( $amount ); 190 } 175 return wp_kses( 176 \WordCamp\Budgets_Dashboard\format_amount( $amount, $currency ), 177 array( 'br' => array() ) 178 ); 191 179 } 192 180
Note: See TracChangeset
for help on using the changeset viewer.