Commit 63f3fdb4 authored by Michael Iseard's avatar Michael Iseard
Browse files

Remove redundant code

parent bb243aab
......@@ -86,32 +86,6 @@ class Campaigns {
return $new_id;
}
/**
* Adds default campaign is no campaigns found
*
* @since 2.3.0
*/
public function add_default() {
$default_campaign[0] = [
'id' => 'default',
'name' => 'Default',
'modal_title' => __( 'Support us!', 'kudos-donations' ),
'welcome_text' => __( 'Your support is greatly appreciated and will help to keep us going.',
'kudos-donations' ),
'address_required' => true,
'amount_type' => 'both',
'fixed_amounts' => '1,5,20,50',
'donation_type' => 'both',
'protected' => true,
];
if ( empty( $this->campaigns ) ) {
update_option( Settings::PREFIX . 'campaigns', $default_campaign );
}
}
/**
* Gets the campaign by specified column (e.g slug)
*
......@@ -171,8 +145,8 @@ class Campaigns {
}
return [
'count' => 0,
'total' => 0,
'count' => 0,
'total' => 0,
'last_donation' => '',
];
......
Markdown is supported
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