Commit e5a9deb7 authored by Michael Iseard's avatar Michael Iseard
Browse files

Clean up

parent a3109a88
......@@ -294,7 +294,7 @@ class Front {
$campaigns = new Campaigns();
if ( ! empty( $atts['campaign_id'] ) ) {
$campaign = $campaigns->get_campaign( $atts['campaign_id'] );
$campaign['campaign_total'] = $campaigns::get_campaign_total($atts['campaign_id']);
$campaign['total'] = $campaigns::get_campaign_total($atts['campaign_id']);
}
// Bail if no campaign found
......@@ -303,7 +303,7 @@ class Front {
}
// Add campaign config to atts
$atts = wp_parse_args( $campaign, $atts );
$atts['campaign'] = $campaign;
// Generate markup.
$button = new KudosButton( $atts );
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment